Update style.css
Browse files
style.css
CHANGED
|
@@ -67,9 +67,15 @@ body {
|
|
| 67 |
}
|
| 68 |
|
| 69 |
/* 🌟 3.2 中间面板 (固定高度) */
|
| 70 |
-
|
| 71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
}
|
|
|
|
|
|
|
| 73 |
/* 中间虚线占位框 */
|
| 74 |
.middle-panel .placeholder-box {
|
| 75 |
flex-grow: 1;
|
|
@@ -226,17 +232,17 @@ textarea {
|
|
| 226 |
|
| 227 |
/* 图库滚动容器 */
|
| 228 |
.gallery-scroll-container {
|
| 229 |
-
flex
|
| 230 |
-
overflow-y: auto;
|
| 231 |
margin-top: 15px;
|
| 232 |
-
padding-right:
|
| 233 |
}
|
| 234 |
|
| 235 |
-
/* 网格
|
| 236 |
.gallery-grid {
|
| 237 |
display: grid;
|
| 238 |
-
grid-template-columns: repeat(
|
| 239 |
-
gap:
|
| 240 |
}
|
| 241 |
|
| 242 |
/* 单个卡片 */
|
|
@@ -253,8 +259,7 @@ textarea {
|
|
| 253 |
|
| 254 |
/* 悬浮效果 */
|
| 255 |
.lora-card:hover {
|
| 256 |
-
|
| 257 |
-
box-shadow: 0 4px 12px rgba(0,0,0,0.4);
|
| 258 |
}
|
| 259 |
|
| 260 |
/* 选中状态(橙色粗边框,类似 Gradio) */
|
|
@@ -302,4 +307,13 @@ textarea {
|
|
| 302 |
overflow: hidden;
|
| 303 |
text-overflow: ellipsis;
|
| 304 |
text-shadow: 0 1px 2px rgba(0,0,0,0.8);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 305 |
}
|
|
|
|
| 67 |
}
|
| 68 |
|
| 69 |
/* 🌟 3.2 中间面板 (固定高度) */
|
| 70 |
+
/* 确保中间面板高度固定,且内部是 flex */
|
| 71 |
+
.middle-panel {
|
| 72 |
+
height: calc(100vh - 40px);
|
| 73 |
+
display: flex;
|
| 74 |
+
flex-direction: column;
|
| 75 |
+
overflow: hidden; /* 🚨 关键:锁死高度,禁止外部撑破 */
|
| 76 |
}
|
| 77 |
+
|
| 78 |
+
|
| 79 |
/* 中间虚线占位框 */
|
| 80 |
.middle-panel .placeholder-box {
|
| 81 |
flex-grow: 1;
|
|
|
|
| 232 |
|
| 233 |
/* 图库滚动容器 */
|
| 234 |
.gallery-scroll-container {
|
| 235 |
+
flex: 1; /* 🚨 关键:吃掉所有剩余高度 */
|
| 236 |
+
overflow-y: auto; /* 内部滚动 */
|
| 237 |
margin-top: 15px;
|
| 238 |
+
padding-right: 8px;
|
| 239 |
}
|
| 240 |
|
| 241 |
+
/* 图库网格:改成一行 3 个 */
|
| 242 |
.gallery-grid {
|
| 243 |
display: grid;
|
| 244 |
+
grid-template-columns: repeat(3, 1fr); /* 🚨 改成 3 列 */
|
| 245 |
+
gap: 15px; /* 间距稍微放大 */
|
| 246 |
}
|
| 247 |
|
| 248 |
/* 单个卡片 */
|
|
|
|
| 259 |
|
| 260 |
/* 悬浮效果 */
|
| 261 |
.lora-card:hover {
|
| 262 |
+
box-shadow: 0 0 10px rgba(0,0,0,0.5);
|
|
|
|
| 263 |
}
|
| 264 |
|
| 265 |
/* 选中状态(橙色粗边框,类似 Gradio) */
|
|
|
|
| 307 |
overflow: hidden;
|
| 308 |
text-overflow: ellipsis;
|
| 309 |
text-shadow: 0 1px 2px rgba(0,0,0,0.8);
|
| 310 |
+
}
|
| 311 |
+
|
| 312 |
+
#selected-lora-name {
|
| 313 |
+
white-space: nowrap;
|
| 314 |
+
overflow: hidden;
|
| 315 |
+
text-overflow: ellipsis;
|
| 316 |
+
max-width: 250px; /* 根据你的面板宽度调整 */
|
| 317 |
+
display: inline-block;
|
| 318 |
+
vertical-align: bottom;
|
| 319 |
}
|