冯杨

修复demo页的部分bug

@@ -176,6 +176,29 @@ @@ -176,6 +176,29 @@
176 opacity: 1 !important; 176 opacity: 1 !important;
177 } 177 }
178 178
  179 + /* NEW: Fullscreen media when sidebar is collapsed */
  180 + #sidebar.collapsed ~ #main-content #media {
  181 + position: fixed;
  182 + top: 0;
  183 + left: 0;
  184 + width: 100vw;
  185 + height: 100vh;
  186 + max-width: none;
  187 + max-height: none;
  188 + aspect-ratio: unset;
  189 + z-index: 1000; /* Ensure it's above other elements like the toggle button */
  190 + margin: 0; /* Reset margin */
  191 + padding: 0; /* Reset padding */
  192 + border-radius: 0; /* Remove any border-radius */
  193 + }
  194 +
  195 + /* Optional: Adjust main content padding when sidebar is collapsed */
  196 + #sidebar.collapsed ~ #main-content {
  197 + padding: 0; /* Remove padding as #media takes full screen */
  198 + background-color: #000; /* Match media background */
  199 + }
  200 +
  201 +
179 .option { 202 .option {
180 display: flex; 203 display: flex;
181 align-items: center; 204 align-items: center;