@youtyan/code-viewer 0.1.18 → 0.1.20
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/dist/code-viewer.js +190 -25
- package/package.json +3 -3
- package/web/app.js +352 -166
- package/web/style.css +19 -6
package/web/style.css
CHANGED
|
@@ -686,9 +686,7 @@ body[data-code-font-size="xlarge"] { --code-font-size: 15px; }
|
|
|
686
686
|
|
|
687
687
|
/* Branch / tag / special items */
|
|
688
688
|
.rp-item-ref {
|
|
689
|
-
display:
|
|
690
|
-
align-items: center;
|
|
691
|
-
gap: 10px;
|
|
689
|
+
display: block;
|
|
692
690
|
padding: 7px 14px;
|
|
693
691
|
cursor: pointer;
|
|
694
692
|
border-left: 2px solid transparent;
|
|
@@ -699,16 +697,29 @@ body[data-code-font-size="xlarge"] { --code-font-size: 15px; }
|
|
|
699
697
|
background: var(--bg-mute);
|
|
700
698
|
border-left-color: var(--accent);
|
|
701
699
|
}
|
|
700
|
+
.rp-item-ref .row1 {
|
|
701
|
+
display: grid;
|
|
702
|
+
grid-template-columns: minmax(0, 1fr) max-content;
|
|
703
|
+
align-items: center;
|
|
704
|
+
gap: 10px;
|
|
705
|
+
}
|
|
702
706
|
.rp-item-ref .name {
|
|
703
707
|
font-family: "Monaspace Neon", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
704
|
-
|
|
708
|
+
min-width: 0;
|
|
705
709
|
overflow: hidden;
|
|
706
710
|
text-overflow: ellipsis;
|
|
707
711
|
white-space: nowrap;
|
|
708
712
|
color: var(--fg);
|
|
709
713
|
}
|
|
710
714
|
.rp-item-ref .badge {
|
|
715
|
+
width: auto;
|
|
716
|
+
height: auto;
|
|
717
|
+
display: inline-flex;
|
|
718
|
+
align-items: center;
|
|
719
|
+
justify-content: center;
|
|
720
|
+
min-height: 18px;
|
|
711
721
|
font-size: 10px;
|
|
722
|
+
line-height: 1;
|
|
712
723
|
font-weight: 600;
|
|
713
724
|
text-transform: uppercase;
|
|
714
725
|
letter-spacing: 0.06em;
|
|
@@ -716,12 +727,14 @@ body[data-code-font-size="xlarge"] { --code-font-size: 15px; }
|
|
|
716
727
|
background: var(--bg-mute);
|
|
717
728
|
padding: 2px 6px;
|
|
718
729
|
border-radius: 4px;
|
|
730
|
+
white-space: nowrap;
|
|
731
|
+
justify-self: end;
|
|
719
732
|
}
|
|
720
733
|
.rp-item-ref .badge.cur { background: var(--accent-subtle); color: var(--accent); }
|
|
721
|
-
.rp-item-ref .
|
|
734
|
+
.rp-item-ref .row2 {
|
|
722
735
|
font-size: 11px;
|
|
723
736
|
color: var(--fg-subtle);
|
|
724
|
-
|
|
737
|
+
margin-top: 2px;
|
|
725
738
|
}
|
|
726
739
|
.rp-empty {
|
|
727
740
|
padding: 36px 14px;
|