localm / src /app /model-slash.css
mihailik's picture
Slash menu style tweaks.
f20c69c
.slash-menu {
position: absolute;
background: white;
border: 1px solid silver;
box-shadow: 3px 6px 9px -1px rgb(0 0 0 / 16%);
max-height: 60vh;
overflow: auto;
min-width: 10em;
z-index: 50;
.model-list {
margin: 0;
padding: 0;
list-style: none;
.model-entry {
padding: 8px 12px;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
border-bottom: 1px solid #f3f4f6;
.model-icon {
font-size: 90%;
}
.model-text-container {
flex: 1;
min-width: 0;
.name {
font-weight: 500;
color: #111827;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.size {
font-size: 12px;
color: #6b7280;
}
}
.auth {
font-size: 10px;
color: #ea580c;
background: #fed7aa;
padding: 2px 6px;
border-radius: 4px;
}
}
.model-entry:hover {
background-color: #f0f9ff;
}
.model-entry:last-child {
border-bottom: none;
}
}
}