From 119542b74884f4d77369adf10a3f96d9b6dbd030 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 27 Dec 2025 22:28:18 +0100 Subject: [PATCH] ux, vibe coded --- modules/web.html | 194 +++++++++++++++++++++++++++-------------------- 1 file changed, 111 insertions(+), 83 deletions(-) diff --git a/modules/web.html b/modules/web.html index 0fe2127..89fb92a 100644 --- a/modules/web.html +++ b/modules/web.html @@ -17,7 +17,33 @@ .panel{background:var(--panel); border-radius:10px; padding:12px; box-shadow: 0 6px 18px rgba(2,8,16,0.6); display:flex; flex-direction:column; overflow:hidden} .left{flex:1.2; min-width:420px} .right{flex:1; display:flex; flex-direction:column; gap:12px} - .frame-title{font-size:16px; color:var(--muted); margin-bottom:8px} + + /* Collapsible Header Styling */ + .frame-title{ + font-size:16px; + color:var(--muted); + margin-bottom:8px; + display: flex; + justify-content: space-between; + align-items: center; + cursor: pointer; + user-select: none; + padding: 4px 0; + } + .frame-title:hover { color: #fff; } + .frame-title::after { + content: '▼'; + font-size: 10px; + transition: transform 0.2s; + opacity: 0.5; + } + + /* Collapsed States */ + .box.collapsed { flex-grow: 0 !important; flex-shrink: 0; } + .box.collapsed .collapsible-content { display: none; } + .box.collapsed .frame-title::after { transform: rotate(-90deg); } + .box.collapsed .frame-title { margin-bottom: 0; } + .now, .next {margin-bottom:12px} .now .track, .next .track {font-weight:600; font-size:14px; word-break:break-all} .progress-wrap{display:flex; gap:10px; align-items:center} @@ -38,7 +64,7 @@ .controls{display:flex; gap:8px; margin-top:8px} .two-col{display:flex; gap:8px; align-items:flex-start; height:100%} .box{display:flex; flex-direction:column; gap:8px; flex-grow: 1; overflow: hidden;} - .listbox{height:100%; min-height:220px; overflow:auto; border-radius:6px; background:var(--card); padding:8px; font-size:14px; scrollbar-width: none;} + .listbox{height:100%; min-height:100px; overflow:auto; border-radius:6px; background:var(--card); padding:8px; font-size:14px; scrollbar-width: none;} .listbox div.item{padding:6px; border-radius:6px; transition: background-color 0.12s ease;} .listbox div.item:hover{background:rgba(255,255,255,0.02); cursor:pointer} .listbox div.item.selected{background:rgba(62, 165, 255, 0.305)} @@ -49,15 +75,18 @@ .directory-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px; flex-grow:1; overflow:hidden} #keybinds {display: flex; gap: 10px; align-items: center; white-space: nowrap; } #keybinds kbd {background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; padding: 2px 6px; font-family: "Consolas", monospace; font-size: 12px; color: #e6eef6; } + @media (max-width:800px){ html, body{overflow: auto; height: auto} .container{padding: 10px; margin: 0} .layout{flex-direction: column; height: auto} .left{min-width:auto} - .directory-grid {grid-template-columns: 1fr} - .listbox {min-height: 250px} + .directory-grid {grid-template-columns: 1fr; height: auto; overflow: visible} + .listbox {min-height: 200px} button, .btn {padding: 10px 14px} - #playlist-box {display: none;} + /* Mobile accessibility fix: remove fixed heights so collapsed items actually shrink */ + .box { flex-grow: 0; } + .panel.right { height: auto; } } @@ -68,59 +97,65 @@
+
-
-
Now Playing
-
Loading...
-
-
-
00:00 / 00:00 (00:00)
-
-
- - - - - -
-
- - - -
-
-
Playlist Queue
-
-
    +
    +
    Now Playing
    +
    Loading...
    +
    +
    +
    00:00 / 00:00 (00:00)
    +
    +
    + + + +
    -
    -
    Queue
    -
    -
      + + + +
      + +
      +
      Playlist Viewer
      +
      +
      +
        +
        +
        +
        + + +
        +
        Queue
        +
        +
          +
          -
          +
          -
          -
          Directory Browser
          -
          +
          +
          Directory Browser
          +
          -
          -
          Subdirectory Files
          -
          +
          +
          Subdirectory Files
          +
          - - + +
          @@ -139,7 +174,6 @@
          \ No newline at end of file