diff --git a/static/css/components/header.css b/static/css/components/header.css index d0e7bd8e..28b1feb1 100644 --- a/static/css/components/header.css +++ b/static/css/components/header.css @@ -6,7 +6,7 @@ z-index: var(--z-header); height: 48px; /* Reduced height */ width: 100%; - box-shadow: 0 1px 3px rgba(0,0,0,0.05); + box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Slightly stronger shadow */ } .header-container { diff --git a/static/css/layout.css b/static/css/layout.css index 17eb2014..a2f84344 100644 --- a/static/css/layout.css +++ b/static/css/layout.css @@ -9,12 +9,22 @@ .container { max-width: 1400px; - margin: 20px auto; + margin: 0 auto; padding: 0 15px; position: relative; z-index: var(--z-base); } +/* Sticky controls container */ +.controls { + position: sticky; + top: -54px; + z-index: calc(var(--z-header) - 1); + background: var(--bg-color); + padding: var(--space-2) 0; + box-shadow: 0 1px 3px rgba(0,0,0,0.05); +} + /* Responsive container for larger screens */ @media (min-width: 2150px) { .container { @@ -28,12 +38,6 @@ } } -.controls { - display: flex; - flex-direction: column; - margin-bottom: var(--space-2); -} - .controls-right { display: flex; align-items: center; @@ -379,4 +383,9 @@ left: auto; right: 0; /* Align to right on mobile */ } + + /* Adjust controls padding on mobile */ + .controls { + padding: 10px 0; + } } diff --git a/templates/loras.html b/templates/loras.html index 03060f1e..113e2739 100644 --- a/templates/loras.html +++ b/templates/loras.html @@ -17,8 +17,8 @@ {% include 'components/controls.html' %} {% include 'components/duplicates_banner.html' %} {% include 'components/folder_sidebar.html' %} - - + +