feat: Update box-shadow for header and adjust controls styling for improved layout

This commit is contained in:
Will Miao
2025-08-27 15:43:44 +08:00
parent 01843b8f2b
commit f6bd48cfcd
3 changed files with 19 additions and 10 deletions

View File

@@ -6,7 +6,7 @@
z-index: var(--z-header); z-index: var(--z-header);
height: 48px; /* Reduced height */ height: 48px; /* Reduced height */
width: 100%; 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 { .header-container {

View File

@@ -9,12 +9,22 @@
.container { .container {
max-width: 1400px; max-width: 1400px;
margin: 20px auto; margin: 0 auto;
padding: 0 15px; padding: 0 15px;
position: relative; position: relative;
z-index: var(--z-base); 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 */ /* Responsive container for larger screens */
@media (min-width: 2150px) { @media (min-width: 2150px) {
.container { .container {
@@ -28,12 +38,6 @@
} }
} }
.controls {
display: flex;
flex-direction: column;
margin-bottom: var(--space-2);
}
.controls-right { .controls-right {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -379,4 +383,9 @@
left: auto; left: auto;
right: 0; /* Align to right on mobile */ right: 0; /* Align to right on mobile */
} }
/* Adjust controls padding on mobile */
.controls {
padding: 10px 0;
}
} }

View File

@@ -17,8 +17,8 @@
{% include 'components/controls.html' %} {% include 'components/controls.html' %}
{% include 'components/duplicates_banner.html' %} {% include 'components/duplicates_banner.html' %}
{% include 'components/folder_sidebar.html' %} {% include 'components/folder_sidebar.html' %}
<!-- Lora卡片容器 --> <!-- Lora card container -->
<div class="card-grid" id="modelGrid"> <div class="card-grid" id="modelGrid">
<!-- Cards will be dynamically inserted here --> <!-- Cards will be dynamically inserted here -->
</div> </div>