mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-06 07:03:37 +00:00
UI: Improve the Tools checkbox list style
This commit is contained in:
parent
fdd8e5b1fd
commit
09d5e049d6
3 changed files with 103 additions and 2 deletions
83
css/main.css
83
css/main.css
|
|
@ -1814,3 +1814,86 @@ tr + tr th { border-top: 1px solid; }
|
|||
|
||||
thead + tbody tr:first-child td,
|
||||
thead + tbody tr:first-child th { border-top: 1px solid; }
|
||||
|
||||
/* ------------------------------------------------
|
||||
Tools CheckboxGroup - vertical DragDrop-like style
|
||||
------------------------------------------------ */
|
||||
|
||||
/* "Refresh list" link in the Tools label */
|
||||
.tools-refresh-link {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Checkbox list container */
|
||||
#tools-group {
|
||||
padding: 0 !important;
|
||||
border-width: 0 !important;
|
||||
background: transparent !important;
|
||||
min-height: 0 !important;
|
||||
}
|
||||
|
||||
#tools-group .wrap {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
gap: 4px;
|
||||
padding: 0;
|
||||
margin-top: var(--spacing-lg);
|
||||
max-height: 350px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
/* Pretty scrollbar for the tools list */
|
||||
#tools-group .wrap::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
#tools-group .wrap::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#tools-group .wrap::-webkit-scrollbar-thumb,
|
||||
#tools-group .wrap::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--neutral-300);
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
.dark #tools-group .wrap::-webkit-scrollbar-thumb,
|
||||
.dark #tools-group .wrap::-webkit-scrollbar-thumb:hover {
|
||||
background: rgb(255 255 255 / 6.25%);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#tools-group .wrap::-webkit-scrollbar-corner {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* Each checkbox item */
|
||||
#tools-group label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 5px 8px;
|
||||
border-radius: var(--radius-sm, 4px);
|
||||
background: var(--block-background-fill);
|
||||
border: 1px solid var(--border-color-primary);
|
||||
color: var(--body-text-color);
|
||||
font-size: var(--input-text-size);
|
||||
font-weight: var(--input-text-weight);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
transition: border-color 0.15s ease, background 0.15s ease;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
#tools-group label:hover {
|
||||
border-color: var(--input-border-color-focus);
|
||||
}
|
||||
|
||||
#tools-group label span {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue