Symbol Palette: fix for 6.1.0

This commit is contained in:
yu-i-i
2026-01-28 00:43:09 +01:00
parent d22c71c7a6
commit 522704855f
2 changed files with 5 additions and 6 deletions

View File

@@ -8,6 +8,7 @@
--symbol-palette-selected-tab-color: var(--content-primary-dark);
--symbol-palette-text-shadow-color: var(--bg-dark-primary);
--symbol-palette-overlay-bg: #{rgb($bg-dark-tertiary, 0.75)};
--symbol-palette-close-invert: 1;
}
@include theme('light') {
@@ -20,6 +21,7 @@
--symbol-palette-selected-tab-color: var(--blue-50);
--symbol-palette-text-shadow-color: var(--bg-light-tertiary);
--symbol-palette-overlay-bg: #{rgb($bg-light-primary, 0.75)};
--symbol-palette-close-invert: 0;
}
.symbol-palette-container {
@@ -159,12 +161,7 @@
}
.symbol-palette-close-button {
--bs-btn-close-color: var(--symbol-palette-color);
[data-theme='default'] & {
--bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e");
filter: var(--bs-btn-close-white-filter);
}
filter: invert(var(--symbol-palette-close-invert));
.symbol-palette-unavailable & {
visibility: hidden;

View File

@@ -1,2 +1,4 @@
import logger from '@overleaf/logger'
logger.debug({}, 'Enable Symbol Palette')
const SymbolPaletteModule = {}
export default SymbolPaletteModule