92 lines
2.4 KiB
CSS
92 lines
2.4 KiB
CSS
/* Preview grid menu (checkpoint + LoRA model lists) */
|
|
.litecontextmenu.otacoo-preview-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 10px;
|
|
overflow-x: hidden;
|
|
max-width: min(90vw, 720px);
|
|
padding: 10px;
|
|
position: fixed;
|
|
z-index: 10001;
|
|
background: var(--input-bg, #1a1a1a);
|
|
border: 1px solid var(--border-color, #444);
|
|
border-radius: 6px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.litecontextmenu.otacoo-preview-grid .comfy-context-menu-filter,
|
|
.litecontextmenu.otacoo-preview-grid .comfy-context-menu-filter input {
|
|
grid-column: 1 / -1;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
.litecontextmenu.otacoo-preview-grid .comfy-context-menu-filter {
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.litecontextmenu.otacoo-preview-grid .otacoo-grid-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 10px;
|
|
grid-column: 1 / -1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.litecontextmenu.otacoo-preview-grid .otacoo-preview-grid-entry {
|
|
word-break: break-word;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
min-width: 0;
|
|
padding: 0;
|
|
text-align: center;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
background: var(--input-bg, #1a1a1a);
|
|
border: 1px solid transparent;
|
|
cursor: pointer;
|
|
transition: border-color 0.15s, background 0.15s;
|
|
}
|
|
|
|
.litecontextmenu.otacoo-preview-grid .otacoo-preview-grid-entry:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border-color: var(--border-color, #444);
|
|
}
|
|
|
|
.litecontextmenu.otacoo-preview-grid .otacoo-preview-grid-entry::before {
|
|
content: "";
|
|
display: block;
|
|
width: 100%;
|
|
height: 160px;
|
|
min-height: 160px;
|
|
background-size: contain;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-image: var(--otacoo-bg-image, none);
|
|
background-color: #333;
|
|
}
|
|
|
|
.litecontextmenu.otacoo-preview-grid .otacoo-preview-grid-entry:not([style*="--otacoo-bg-image"])::before {
|
|
background-color: #2a2a2a;
|
|
}
|
|
|
|
.litecontextmenu.otacoo-preview-grid .otacoo-preview-grid-entry .litemenu-entry-content,
|
|
.litecontextmenu.otacoo-preview-grid .otacoo-preview-grid-entry .widget-content {
|
|
padding: 6px 4px;
|
|
font-size: 11px;
|
|
line-height: 1.3;
|
|
color: var(--input-text, #eee);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
width: 100%;
|
|
}
|
|
|
|
.litecontextmenu.otacoo-preview-grid .otacoo-preview-grid-entry .litemenu-entry-content {
|
|
display: block;
|
|
}
|