mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 07:05:43 -03:00
Improve card layout responsiveness and scrolling behavior
This commit is contained in:
@@ -7,9 +7,11 @@
|
|||||||
margin-top: var(--space-2);
|
margin-top: var(--space-2);
|
||||||
padding-top: 4px; /* 添加顶部内边距,为悬停动画提供空间 */
|
padding-top: 4px; /* 添加顶部内边距,为悬停动画提供空间 */
|
||||||
padding-bottom: 4px; /* 添加底部内边距,为悬停动画提供空间 */
|
padding-bottom: 4px; /* 添加底部内边距,为悬停动画提供空间 */
|
||||||
|
width: 100%; /* Ensure it takes full width of container */
|
||||||
max-width: 1400px; /* Base container width */
|
max-width: 1400px; /* Base container width */
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
box-sizing: border-box; /* Include padding in width calculation */
|
||||||
}
|
}
|
||||||
|
|
||||||
.lora-card {
|
.lora-card {
|
||||||
@@ -452,6 +454,8 @@
|
|||||||
height: auto;
|
height: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 1400px; /* Keep the max-width from original grid */
|
max-width: 1400px; /* Keep the max-width from original grid */
|
||||||
|
box-sizing: border-box; /* Include padding in width calculation */
|
||||||
|
overflow-x: hidden; /* Prevent horizontal overflow */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For larger screens, allow more space for the cards */
|
/* For larger screens, allow more space for the cards */
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
.page-content {
|
.page-content {
|
||||||
height: calc(100vh - 48px); /* Full height minus header */
|
height: calc(100vh - 48px); /* Full height minus header */
|
||||||
margin-top: 48px; /* Push down below header */
|
margin-top: 48px; /* Push down below header */
|
||||||
overflow-y: auto; /* Enable scrolling here */
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow-y: scroll;
|
overflow-x: hidden; /* Prevent horizontal scrolling */
|
||||||
|
overflow-y: auto; /* Enable vertical scrolling */
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
|
|||||||
Reference in New Issue
Block a user