@youtyan/code-viewer 0.1.4 → 0.1.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/web/style.css +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youtyan/code-viewer",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Local browser-based git diff viewer",
5
5
  "type": "module",
6
6
  "bin": {
package/web/style.css CHANGED
@@ -714,10 +714,11 @@ html, body {
714
714
 
715
715
  /* ===== Sidebar resizer (drag right edge to resize) ===== */
716
716
  #sidebar-resizer {
717
- position: absolute;
718
- top: 0; right: -3px;
719
- width: 6px;
720
- height: 100%;
717
+ position: fixed;
718
+ top: var(--chrome-h);
719
+ bottom: 0;
720
+ left: calc(var(--sidebar-w) - 4px);
721
+ width: 8px;
721
722
  cursor: col-resize;
722
723
  z-index: 31;
723
724
  background: transparent;
@@ -741,7 +742,6 @@ body.gdp-resizing #sidebar-resizer {
741
742
  pointer-events: none;
742
743
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
743
744
  }
744
- #sidebar { position: fixed; } /* ensure relative ancestor for resizer */
745
745
  body.gdp-resizing { cursor: col-resize !important; user-select: none; }
746
746
  body.gdp-resizing * { user-select: none !important; }
747
747