mirror of
https://github.com/bal-spec/sillytavern-character-memory.git
synced 2026-04-28 03:39:44 +00:00
Adds a semi-transparent backdrop behind the injection drawer that closes it when clicked/tapped. Works on both desktop and touch devices. Also increases the close button touch target to 32px minimum for better iPad usability. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1000 lines
20 KiB
CSS
1000 lines
20 KiB
CSS
.charMemory_settings .inline-drawer-content {
|
|
padding: 5px 0;
|
|
}
|
|
|
|
.charMemory_statusRow {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.charMemory_buttonRow {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.charMemory_sliderRow {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.charMemory_sliderRow input[type="range"] {
|
|
width: 100%;
|
|
}
|
|
|
|
.charMemory_promptSection {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.charMemory_promptSection textarea {
|
|
width: 100%;
|
|
resize: vertical;
|
|
min-height: 100px;
|
|
}
|
|
|
|
/* Stats bar */
|
|
.charMemory_statsBar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin: 4px 0 8px;
|
|
}
|
|
|
|
.charMemory_statItem {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 4px;
|
|
padding: 4px 8px;
|
|
font-size: 0.85em;
|
|
flex: 1 1 auto;
|
|
min-width: 80px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.charMemory_statItem i {
|
|
opacity: 0.6;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_statItem span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Health indicator in status bar */
|
|
.charMemory_statHealth {
|
|
cursor: pointer;
|
|
}
|
|
.charMemory_statHealth:hover {
|
|
opacity: 0.85;
|
|
}
|
|
.charMemory_healthDot {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
background: var(--SmartThemeBorderColor, #555);
|
|
transition: background 0.3s;
|
|
}
|
|
.charMemory_healthDot.health-green { background: #4a4; }
|
|
.charMemory_healthDot.health-yellow { background: #e8a33d; }
|
|
.charMemory_healthDot.health-red { background: #c44; }
|
|
.charMemory_healthDot.health-unknown { background: var(--SmartThemeBorderColor, #555); }
|
|
|
|
.charMemory_groupAvatar {
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Searchable model picker */
|
|
.charMemory_modelPicker {
|
|
position: relative;
|
|
}
|
|
|
|
.charMemory_modelDropdown {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
background: var(--SmartThemeBorderColor, #333);
|
|
border: 1px solid var(--SmartThemeQuoteColor, #555);
|
|
border-radius: 4px;
|
|
z-index: 1000;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.charMemory_modelDropdown.open {
|
|
display: block;
|
|
}
|
|
|
|
.charMemory_modelDropdown .charMemory_modelGroup {
|
|
padding: 4px 8px 2px;
|
|
font-size: 0.8em;
|
|
font-weight: bold;
|
|
opacity: 0.6;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.charMemory_modelDropdown .charMemory_modelOption {
|
|
padding: 6px 10px;
|
|
cursor: pointer;
|
|
font-size: 0.9em;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.charMemory_modelDropdown .charMemory_modelOption:hover,
|
|
.charMemory_modelDropdown .charMemory_modelOption.active {
|
|
background: var(--SmartThemeBlurTintColor, rgba(255, 255, 255, 0.1));
|
|
}
|
|
|
|
.charMemory_modelDropdown .charMemory_modelOption.selected {
|
|
color: var(--SmartThemeQuoteColor, #aaa);
|
|
}
|
|
|
|
.charMemory_modelDropdown .charMemory_modelEmpty {
|
|
padding: 10px;
|
|
text-align: center;
|
|
opacity: 0.5;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Tabs */
|
|
.charMemory_tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0;
|
|
margin-bottom: 6px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.2));
|
|
}
|
|
|
|
.charMemory_tab {
|
|
padding: 6px 10px;
|
|
font-size: 0.85em;
|
|
background: none;
|
|
border: none;
|
|
border-bottom: 2px solid transparent;
|
|
cursor: pointer;
|
|
opacity: 0.6;
|
|
color: var(--SmartThemeBodyColor, #ccc);
|
|
transition: opacity 0.15s, border-color 0.15s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.charMemory_tab:hover {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.charMemory_tab.active {
|
|
opacity: 1;
|
|
border-bottom-color: var(--SmartThemeQuoteColor, #888);
|
|
}
|
|
|
|
/* Tool pill sub-navigation */
|
|
.charMemory_toolPills {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.charMemory_toolPill {
|
|
padding: 3px 10px;
|
|
font-size: 0.8em;
|
|
background: var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.15));
|
|
border: 1px solid transparent;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
opacity: 0.6;
|
|
color: var(--SmartThemeBodyColor, #ccc);
|
|
transition: opacity 0.15s, background 0.15s;
|
|
}
|
|
|
|
.charMemory_toolPill:hover {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.charMemory_toolPill.active {
|
|
opacity: 1;
|
|
background: var(--SmartThemeQuoteColor, rgba(128, 128, 128, 0.3));
|
|
border-color: var(--SmartThemeQuoteColor, #888);
|
|
}
|
|
|
|
/* Helper text */
|
|
.charMemory_helperText {
|
|
display: block;
|
|
font-size: 0.8em;
|
|
opacity: 0.5;
|
|
margin-top: 2px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
/* Section header — label + control on same line */
|
|
.charMemory_sectionHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* Separator */
|
|
.charMemory_separator {
|
|
border: none;
|
|
border-top: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.2));
|
|
margin: 10px 0;
|
|
}
|
|
|
|
/* Danger button */
|
|
.charMemory_dangerBtn {
|
|
color: var(--SmartThemeQuoteColor, #c44);
|
|
}
|
|
|
|
/* Diagnostics */
|
|
.charMemory_diagnosticsContent {
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.charMemory_diagTimestamp {
|
|
font-size: 0.85em;
|
|
opacity: 0.7;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.charMemory_diagSection {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.charMemory_diagCard {
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 4px;
|
|
padding: 6px 8px;
|
|
margin: 4px 0;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.charMemory_diagCardTitle {
|
|
font-weight: bold;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.charMemory_diagCardKeys {
|
|
font-size: 0.85em;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.charMemory_diagCardContent {
|
|
font-size: 0.85em;
|
|
opacity: 0.7;
|
|
white-space: pre-wrap;
|
|
max-height: 100px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.charMemory_diagEmpty {
|
|
font-size: 0.85em;
|
|
opacity: 0.5;
|
|
font-style: italic;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
/* Health check cards in diagnostics */
|
|
.charMemory_healthCheck .charMemory_diagCardTitle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
/* Per-message health notes in injection drawer */
|
|
.charMemory_drawerHealthNote {
|
|
padding: 6px 8px;
|
|
margin-bottom: 8px;
|
|
font-size: 0.85em;
|
|
border-radius: 4px;
|
|
line-height: 1.4;
|
|
}
|
|
.charMemory_drawerHealthNote--red {
|
|
color: #c44;
|
|
background: rgba(204, 68, 68, 0.1);
|
|
}
|
|
.charMemory_drawerHealthNote--yellow {
|
|
color: #e8a33d;
|
|
background: rgba(232, 163, 61, 0.1);
|
|
}
|
|
|
|
/* Activity Log */
|
|
.charMemory_logEntry {
|
|
padding: 2px 4px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.1));
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.charMemory_logTime {
|
|
opacity: 0.5;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.charMemory_log_success {
|
|
color: var(--SmartThemeQuoteColor, #4a4);
|
|
}
|
|
|
|
.charMemory_log_warning {
|
|
color: orange;
|
|
}
|
|
|
|
.charMemory_log_error {
|
|
color: var(--SmartThemeQuoteColor, #c44);
|
|
}
|
|
|
|
.charMemory_logVerbose {
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-size: 0.8em;
|
|
opacity: 0.7;
|
|
margin: 4px 0;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
padding: 4px 6px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Memory Manager Popup */
|
|
.charMemory_manager {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
padding: 4px;
|
|
text-align: left;
|
|
}
|
|
|
|
.charMemory_card {
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 6px;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.charMemory_card ul {
|
|
margin: 0;
|
|
padding-left: 1.2em;
|
|
font-size: 0.85em;
|
|
list-style-type: disc;
|
|
}
|
|
|
|
.charMemory_cardHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.charMemory_cardTitle {
|
|
font-weight: bold;
|
|
font-size: 0.95em;
|
|
}
|
|
|
|
.charMemory_cardTimestamp {
|
|
font-size: 0.8em;
|
|
opacity: 0.6;
|
|
flex: 1;
|
|
}
|
|
|
|
.charMemory_cardActions {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.charMemory_cardBullets {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.charMemory_bulletRow {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
padding: 3px 0;
|
|
border-top: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.15));
|
|
}
|
|
|
|
.charMemory_bulletRow:first-child {
|
|
border-top: none;
|
|
}
|
|
|
|
.charMemory_bulletText {
|
|
flex: 1;
|
|
font-size: 0.9em;
|
|
line-height: 1.4;
|
|
min-width: 0;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.charMemory_bulletActions {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_bulletActions .menu_button_icon {
|
|
padding: 2px 6px;
|
|
font-size: 0.85em;
|
|
min-width: unset;
|
|
}
|
|
|
|
/* Per-message buttons — inherit .mes_button base styling from ST */
|
|
.charMemory_extractHereBtn,
|
|
.charMemory_pinMemoryBtn {
|
|
cursor: pointer;
|
|
opacity: 0.7;
|
|
transition: opacity 0.15s;
|
|
}
|
|
.charMemory_extractHereBtn:hover,
|
|
.charMemory_pinMemoryBtn:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Memory extracted indicator */
|
|
.charMemory_extractedIndicator {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
margin-left: 4px;
|
|
opacity: 0.35;
|
|
color: var(--SmartThemeBodyColor, #ccc);
|
|
font-size: 0.75em;
|
|
vertical-align: middle;
|
|
cursor: default;
|
|
}
|
|
.charMemory_extractedIndicator:hover {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Group Members List */
|
|
.charMemory_groupMembersList {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.charMemory_groupMemberRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.charMemory_groupMemberName {
|
|
font-size: 0.9em;
|
|
font-weight: bold;
|
|
min-width: 80px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.charMemory_groupMemberFile {
|
|
flex: 1;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
/* Batch Extract */
|
|
.charMemory_batchChatList {
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.charMemory_batchChatItem {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 4px 6px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.1));
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.charMemory_batchChatItem label {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.charMemory_batchChatName {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.charMemory_batchChatMeta {
|
|
font-size: 0.85em;
|
|
opacity: 0.5;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.charMemory_batchSelectRow {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.charMemory_batchProgress {
|
|
margin: 6px 0;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.charMemory_batchProgressBar {
|
|
height: 4px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 2px;
|
|
margin-top: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.charMemory_batchProgressFill {
|
|
height: 100%;
|
|
background: var(--SmartThemeQuoteColor, #888);
|
|
border-radius: 2px;
|
|
width: 0%;
|
|
transition: width 0.3s;
|
|
}
|
|
|
|
/* Consolidation Dialog */
|
|
.charMemory_consolidationDialog {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
text-align: left;
|
|
}
|
|
|
|
.charMemory_consolidationStats {
|
|
font-size: 0.9em;
|
|
padding: 6px 10px;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.1));
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.charMemory_consolidationPanes {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.charMemory_consolidationPane {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.charMemory_consolidationPane h4 {
|
|
margin: 0 0 6px 0;
|
|
}
|
|
|
|
.charMemory_consolidationContent {
|
|
max-height: 50vh;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.charMemory_consolidationToolbar {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(255,255,255,0.1));
|
|
}
|
|
|
|
.charMemory_editorBulletRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.charMemory_editorDash {
|
|
flex-shrink: 0;
|
|
font-size: 0.85em;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.charMemory_editorBulletInput {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: 3px 6px;
|
|
font-size: 0.85em;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.05));
|
|
color: var(--SmartThemeBodyColor);
|
|
border: 1px solid transparent;
|
|
border-radius: 4px;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.charMemory_editorBulletInput:focus {
|
|
border-color: var(--SmartThemeBorderColor, rgba(255,255,255,0.2));
|
|
outline: none;
|
|
}
|
|
|
|
.charMemory_editorBullets {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.charMemory_editorAddBullet,
|
|
.charMemory_editorAddBlock {
|
|
font-size: 0.8em;
|
|
opacity: 0.7;
|
|
padding: 2px 8px;
|
|
}
|
|
|
|
.charMemory_editorAddBullet:hover,
|
|
.charMemory_editorAddBlock:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.charMemory_editorAddBlock {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.charMemory_editorCard {
|
|
position: relative;
|
|
}
|
|
|
|
.charMemory_editorCard--editing {
|
|
border: 1px solid var(--SmartThemeBorderColor, rgba(255,255,255,0.15));
|
|
}
|
|
|
|
.charMemory_editorToggleEdit {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.charMemory_editorToggleEdit:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.charMemory_editorThemeInput {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: 2px 6px;
|
|
font-weight: bold;
|
|
font-size: 0.95em;
|
|
background: var(--SmartThemeBlurTintColor, rgba(0, 0, 0, 0.05));
|
|
color: var(--SmartThemeBodyColor);
|
|
border: 1px solid transparent;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.charMemory_editorThemeInput:focus {
|
|
border-color: var(--SmartThemeBorderColor, rgba(255,255,255,0.2));
|
|
outline: none;
|
|
}
|
|
|
|
.charMemory_editorAddBlock--hidden {
|
|
display: none;
|
|
}
|
|
|
|
.charMemory_promptDisclosure {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.charMemory_promptDisclosure summary {
|
|
cursor: pointer;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.charMemory_promptDisclosure summary:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.charMemory_promptDisclosure textarea {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.charMemory_editorDisabled {
|
|
pointer-events: none;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* Activity Log — always visible */
|
|
.charMemory_miniLog {
|
|
border-top: 1px solid var(--SmartThemeBorderColor, rgba(255,255,255,0.1));
|
|
margin-top: 8px;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.charMemory_miniLogContent {
|
|
font-size: 0.8em;
|
|
font-family: monospace;
|
|
height: 60px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
resize: vertical;
|
|
min-height: 30px;
|
|
max-height: 400px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.charMemory_miniLogEmpty {
|
|
padding: 2px 0;
|
|
font-size: 0.9em;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* Bottom Diagnostics — always visible */
|
|
.charMemory_bottomDiagnostics {
|
|
border-top: 1px solid var(--SmartThemeBorderColor, rgba(255,255,255,0.1));
|
|
margin-top: 8px;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.charMemory_bottomDiagnostics .charMemory_buttonRow {
|
|
align-items: center;
|
|
}
|
|
|
|
.charMemory_bottomDiagnostics .charMemory_diagnosticsContent {
|
|
max-height: 300px;
|
|
}
|
|
|
|
/* Convert tool */
|
|
.charMemory_convertWarning {
|
|
padding: 6px 8px;
|
|
margin-bottom: 8px;
|
|
font-size: 0.85em;
|
|
color: var(--SmartThemeQuoteColor, #e8a33d);
|
|
background: rgba(232, 163, 61, 0.1);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Convert dialog (popup) */
|
|
.charMemory_convertSourcePre {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 0.8em;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
font-family: var(--monoFontFamily, monospace);
|
|
}
|
|
|
|
.charMemory_convOutputSection {
|
|
margin-top: 8px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.2));
|
|
}
|
|
|
|
.charMemory_convDestRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
/* Injection viewer — per-message button */
|
|
.charMemory_viewInjectedBtn {
|
|
cursor: pointer;
|
|
opacity: 0.7;
|
|
transition: opacity 0.15s;
|
|
}
|
|
.charMemory_viewInjectedBtn:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Injection data indicator (syringe icon next to char name) */
|
|
.charMemory_injectionIndicator {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
margin-left: 4px;
|
|
opacity: 0.35;
|
|
color: var(--SmartThemeQuoteColor, #e8a33d);
|
|
font-size: 0.75em;
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
transition: opacity 0.15s;
|
|
}
|
|
.charMemory_injectionIndicator:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* ===== Injection Viewer Drawer ===== */
|
|
|
|
.charMemory_injectionDrawer {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
width: 320px;
|
|
height: 100vh;
|
|
background: var(--SmartThemeBlurTintColor, #1a1a2e);
|
|
color: var(--SmartThemeBodyColor, #ccc);
|
|
border-left: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.3));
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: translateX(100%);
|
|
transition: transform 0.2s ease;
|
|
font-size: 0.9em;
|
|
}
|
|
.charMemory_injectionDrawer.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
/* Backdrop — click outside drawer to close (works on both touch and mouse) */
|
|
.charMemory_drawerBackdrop {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
z-index: 999;
|
|
background: rgba(0, 0, 0, 0.15);
|
|
}
|
|
.charMemory_drawerBackdrop.open {
|
|
display: block;
|
|
}
|
|
|
|
.charMemory_drawerHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.3));
|
|
flex-shrink: 0;
|
|
}
|
|
.charMemory_drawerTitle {
|
|
font-weight: bold;
|
|
white-space: nowrap;
|
|
}
|
|
.charMemory_drawerMsgLabel {
|
|
opacity: 0.6;
|
|
font-size: 0.9em;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
flex: 1;
|
|
}
|
|
.charMemory_drawerClose {
|
|
cursor: pointer;
|
|
opacity: 0.6;
|
|
padding: 8px;
|
|
margin-left: auto;
|
|
transition: opacity 0.15s;
|
|
color: var(--SmartThemeBodyColor, #ccc);
|
|
min-width: 32px;
|
|
min-height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.1em;
|
|
}
|
|
.charMemory_drawerClose:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.charMemory_drawerBody {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.charMemory_drawerFooter {
|
|
padding: 6px 12px;
|
|
font-size: 0.8em;
|
|
opacity: 0.5;
|
|
border-top: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.3));
|
|
flex-shrink: 0;
|
|
}
|
|
.charMemory_drawerDiagLink {
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
opacity: 0.8;
|
|
}
|
|
.charMemory_drawerDiagLink:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Drawer toggle button */
|
|
.charMemory_drawerToggle {
|
|
position: fixed;
|
|
right: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: var(--SmartThemeBlurTintColor, #1a1a2e);
|
|
color: var(--SmartThemeBodyColor, #ccc);
|
|
border: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.3));
|
|
border-right: none;
|
|
border-radius: 6px 0 0 6px;
|
|
padding: 8px 6px;
|
|
cursor: pointer;
|
|
z-index: 999;
|
|
opacity: 0.5;
|
|
transition: opacity 0.15s, right 0.2s ease;
|
|
}
|
|
.charMemory_drawerToggle:hover {
|
|
opacity: 0.9;
|
|
}
|
|
.charMemory_drawerToggle.open {
|
|
right: 320px;
|
|
}
|
|
|
|
/* Drawer sections */
|
|
.charMemory_drawerSection {
|
|
margin-bottom: 8px;
|
|
border: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.15));
|
|
border-radius: 4px;
|
|
}
|
|
.charMemory_drawerSectionHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 8px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
background: rgba(128, 128, 128, 0.05);
|
|
}
|
|
.charMemory_drawerSectionHeader:hover {
|
|
background: rgba(128, 128, 128, 0.1);
|
|
}
|
|
.charMemory_drawerCount {
|
|
opacity: 0.5;
|
|
font-weight: normal;
|
|
font-size: 0.9em;
|
|
}
|
|
.charMemory_drawerChevron {
|
|
font-size: 0.7em;
|
|
transition: transform 0.15s;
|
|
}
|
|
.charMemory_drawerChevron.collapsed {
|
|
transform: rotate(-90deg);
|
|
}
|
|
.charMemory_drawerSectionBody {
|
|
padding: 4px 8px 8px;
|
|
}
|
|
|
|
/* Drawer content cards */
|
|
.charMemory_drawerBullet {
|
|
padding: 2px 0;
|
|
font-size: 0.9em;
|
|
line-height: 1.4;
|
|
}
|
|
.charMemory_drawerCard {
|
|
padding: 6px 8px;
|
|
margin: 4px 0;
|
|
border: 1px solid var(--SmartThemeBorderColor, rgba(128, 128, 128, 0.15));
|
|
border-radius: 4px;
|
|
font-size: 0.85em;
|
|
}
|
|
.charMemory_drawerCardTitle {
|
|
font-weight: bold;
|
|
margin-bottom: 2px;
|
|
}
|
|
.charMemory_drawerCardKeys {
|
|
opacity: 0.6;
|
|
font-size: 0.9em;
|
|
}
|
|
.charMemory_drawerCardContent {
|
|
margin-top: 4px;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
max-height: 120px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Message highlight when selected in drawer */
|
|
.charMemory_highlightMes {
|
|
outline: 2px solid var(--SmartThemeQuoteColor, #e8a33d);
|
|
outline-offset: -2px;
|
|
transition: outline-color 1.5s ease;
|
|
}
|