@youtyan/code-viewer 0.8.9 → 0.9.1

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/style.css CHANGED
@@ -2721,11 +2721,19 @@ body.gdp-help-page #content {
2721
2721
  .badge.A { background: #ccffd866; color: var(--success); }
2722
2722
  .badge.D { background: #ffd7d566; color: var(--danger); }
2723
2723
  .badge.R { background: #d8b9ff66; color: var(--done); }
2724
+ /* Outside version control. U (untracked) takes the accent hue so it reads as
2725
+ "not in git yet" rather than as one more shade of the staged-green A it
2726
+ used to be collapsed into. I (ignored) stays deliberately colorless: an
2727
+ ignored file is present but irrelevant to the repository. */
2728
+ .badge.U { background: var(--accent-subtle); color: var(--accent); }
2729
+ .badge.I { background: var(--bg-emph); color: var(--fg-muted); }
2724
2730
 
2725
2731
  [data-theme="dark"] .badge.M { background: rgba(210,153,34,0.20); color: var(--attn); }
2726
2732
  [data-theme="dark"] .badge.A { background: rgba(46,160,67,0.20); color: var(--success); }
2727
2733
  [data-theme="dark"] .badge.D { background: rgba(248,81,73,0.20); color: var(--danger); }
2728
2734
  [data-theme="dark"] .badge.R { background: rgba(163,113,247,0.20); color: var(--done); }
2735
+ [data-theme="dark"] .badge.U { background: rgba(56,139,253,0.20); color: var(--accent); }
2736
+ [data-theme="dark"] .badge.I { background: rgba(145,152,161,0.15); color: var(--fg-muted); }
2729
2737
 
2730
2738
  /* Sidebar row marker for files worth a second look before diving in:
2731
2739
  heavy diffs, binary/media files, or Git commit entries. Same semantics as
@@ -3766,10 +3774,12 @@ table.d2h-diff-table td.d2h-code-side-linenumber {
3766
3774
  border-radius: 6px;
3767
3775
  }
3768
3776
  .gdp-upload-panel {
3769
- display: flex;
3777
+ /* Grid, not space-between flex: the always-present error node would
3778
+ otherwise take the right edge and strand the button in the middle. */
3779
+ display: grid;
3780
+ grid-template-columns: minmax(0, 1fr) auto;
3770
3781
  align-items: center;
3771
- justify-content: space-between;
3772
- gap: 12px;
3782
+ gap: 6px 12px;
3773
3783
  margin: 12px 14px;
3774
3784
  padding: 10px 14px;
3775
3785
  border: 1px dashed var(--border);
@@ -3789,11 +3799,15 @@ table.d2h-diff-table td.d2h-code-side-linenumber {
3789
3799
  border-color: var(--danger);
3790
3800
  }
3791
3801
  .gdp-upload-error {
3792
- min-height: 18px;
3802
+ /* Second row, full width, so showing an error never shifts the button. */
3803
+ grid-column: 1 / -1;
3793
3804
  color: var(--danger);
3794
3805
  font-size: var(--ui-font-base);
3795
3806
  line-height: 18px;
3796
3807
  }
3808
+ .gdp-upload-error:empty {
3809
+ display: none;
3810
+ }
3797
3811
  .gdp-upload-copy {
3798
3812
  min-width: 0;
3799
3813
  color: var(--fg-muted);
@@ -4786,6 +4800,16 @@ body.gdp-file-detail-page #empty {
4786
4800
  white-space: nowrap;
4787
4801
  font-weight: 500;
4788
4802
  }
4803
+ /* Holds the name plus a directory's status badge inside the single name
4804
+ column of the row grid - same shape as the sidebar's .dir-label, which
4805
+ pairs a directory name with its badges. */
4806
+ .gdp-repo-row .name-cell {
4807
+ min-width: 0;
4808
+ display: flex;
4809
+ align-items: center;
4810
+ gap: 6px;
4811
+ overflow: hidden;
4812
+ }
4789
4813
  .gdp-repo-row .kind {
4790
4814
  justify-self: end;
4791
4815
  color: var(--fg-muted);