mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
* Add gallery folder and sort order controls Closes #3601 * Refactor sort constants to use Object.freeze for immutability * Add comment * Remove excessive null propagation * Update type hint for gallery.folders * Use defaultSettings.sort as a fallback * Throw in groups * Handle rename/deletion events * Merge init functions * Fix multiple gallery file uplods * Add min-height for gallery element * Fix gallery endpoint not parsing body * translatable toasts * Pass folder path in request body * Change restore pictogram * Add title to gallery thumbnail images * Allow optional folder parameter in image list endpoint and handle deprecated usage warning * Add validation for folder parameter in image list endpoint * Add border to gallery sort selection * Remove override if default folder is set to input * Use server-side path sanitation * Sanitize gallery folder input before updating --------- Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>
46 lines
923 B
CSS
46 lines
923 B
CSS
.nGY2 .nGY2GalleryBottom {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.gallery-folder-input {
|
|
background-color: transparent;
|
|
font-size: calc(var(--mainFontSize)* 0.9);
|
|
opacity: 0.8;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.gallery-folder-input:placeholder-shown {
|
|
font-style: italic;
|
|
opacity: 0.5;
|
|
border-color: transparent;
|
|
}
|
|
|
|
.gallery-sort-select {
|
|
width: max-content;
|
|
flex: 1;
|
|
cursor: pointer;
|
|
overflow-x: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
width: 100%;
|
|
opacity: 0.8;
|
|
background: none;
|
|
background-image: url(/img/down-arrow.svg);
|
|
background-repeat: no-repeat;
|
|
background-position: right 6px center;
|
|
background-size: 8px 5px;
|
|
padding-right: 20px;
|
|
font-size: calc(var(--mainFontSize)* 0.9);
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
#gallery .dragTitle {
|
|
margin-right: 30px;
|
|
}
|
|
|
|
#dragGallery {
|
|
min-height: 25dvh;
|
|
}
|