Files
SillyTavern/public/css/data-maid.css
Cohee 3ec9b1a099 Implement data clean-up dialog (#4072)
* [wip] Add user data cleanup service

* Add clean-up report viewer

* Fix review comments

* Add function comments

* Implement item actions

* Fix UI styles

* Add placeholder for empty results, update category description view

* Add displayEmptyPlaceholder method to show message when results list is empty

* Adjust menu buttons row

* Delete char-scoped data bank attachments on character deletion

* Data Bank: Handle character attachments on rename

* Remove line breaks in description strings

* Drop the category when the last item is deleted

* Skip invalid hashes instead of bailing
2025-06-01 13:56:34 +03:00

150 lines
2.4 KiB
CSS

.dataMaidDialogContainer {
height: 100%;
overflow: hidden;
}
.dataMaidDialog {
display: flex;
flex-direction: column;
gap: 5px;
height: 100%;
overflow: hidden;
}
.dataMaidDialogHeader {
display: flex;
gap: 10px;
align-items: center;
text-align: left;
}
.dataMaidHeaderInfo {
flex: 1;
margin: 0;
padding: 5px 10px;
}
.dataMaidTextView {
width: 100%;
height: 100%;
font-family: var(--monoFontFamily);
resize: none;
font-size: 0.95em;
}
.dataMaidImageView {
width: 100%;
height: 100%;
object-fit: contain;
}
.dataMaidSpinner {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
.dataMaidPlaceholder {
display: flex;
justify-content: center;
align-items: center;
font-size: 1.05em;
}
.dataMaidResultsList:empty {
display: none;
}
.dataMaidResultsList {
text-align: left;
display: flex;
flex-direction: column;
gap: 2px;
overflow-y: auto;
height: 100%;
flex-grow: 1;
}
.dataMaidCategory {
border: 1px solid var(--SmartThemeBorderColor);
border-radius: 10px;
padding: 0 10px;
}
.dataMaidCategoryHeader {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
margin-right: 5px;
padding: 0 5px;
}
.dataMaidCategoryDetails {
display: flex;
flex-direction: column;
gap: 1px;
}
.dataMaidCategoryName {
flex: 3;
font-weight: bold;
font-size: 1.1em;
}
.dataMaidCategoryInfo {
flex: 1;
display: flex;
align-items: baseline;
gap: 5px;
}
.dataMaidCategoryContent {
border: 1px solid var(--SmartThemeBorderColor);
padding: 5px;
border-radius: 10px;
background-color: var(--black30a);
margin: 10px 0;
}
.dataMaidCategoryContent>.info-block {
white-space: pre-wrap;
}
.dataMaidItem {
display: flex;
flex-direction: column;
padding: 5px;
width: 100%;
border-bottom: 1px solid var(--SmartThemeBorderColor);
}
.dataMaidItem:last-child {
border-bottom: none;
}
.dataMaidItemHeader {
display: flex;
align-items: center;
gap: 5px;
}
.dataMaidItemName {
display: flex;
flex: 1;
align-items: baseline;
gap: 2px;
word-break: break-all;
}
.dataMaidItemActions {
display: flex;
align-items: center;
gap: 5px;
}
.dataMaidItemActions>button {
font-size: 0.9em;
}