@youtyan/code-viewer 0.5.5 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web/index.html CHANGED
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
  </div>
118
118
  <div class="sb-filter-wrap">
119
- <input id="sb-filter" type="search" placeholder="filter files… (/)" title="Use /pattern/ for regex. Cmd/Ctrl+K focuses this field." autocomplete="off" />
119
+ <input id="sb-filter" type="search" placeholder="filter files… / ⌘K" title="Use /pattern/ for regex. Press / to focus this field, Cmd/Ctrl+K for the full-file palette, Ctrl+G for grep, ? for help." autocomplete="off" />
120
120
  </div>
121
121
  <ul id="filelist"></ul>
122
122
  <div id="sidebar-resizer" aria-hidden="true"></div>
package/web/style.css CHANGED
@@ -528,6 +528,10 @@ body[data-code-font-size="xlarge"] { --code-font-size: 15px; }
528
528
  cursor: pointer;
529
529
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
530
530
  }
531
+ .ref-selector[hidden],
532
+ #repo-target-wrap {
533
+ display: none !important;
534
+ }
531
535
  [data-theme="dark"] .ref-selector {
532
536
  border-color: var(--border);
533
537
  background: var(--bg-soft);
@@ -573,6 +577,14 @@ body[data-code-font-size="xlarge"] { --code-font-size: 15px; }
573
577
  border-color: transparent;
574
578
  box-shadow: none;
575
579
  }
580
+ body.gdp-repo-page #repo-target-wrap:not([hidden]),
581
+ body.gdp-file-detail-page.gdp-repo-blob-page #repo-target-wrap:not([hidden]) {
582
+ display: flex !important;
583
+ }
584
+ body.gdp-diff-page #repo-target-wrap:not([hidden]),
585
+ body.gdp-diff-page #repo-target-wrap {
586
+ display: none !important;
587
+ }
576
588
  .ref-dots {
577
589
  color: var(--fg-subtle);
578
590
  font-size: 14px;