fix: Keep sidebar background consistent across themes

Change sidebar background from var(--sidebar-bg) to fixed #d1d4d2
so it remains the same light gray color in both light and dark themes.

The sidebar should provide a consistent visual anchor regardless
of the main content theme.
This commit is contained in:
juanatsap
2025-11-19 14:57:38 +00:00
parent 4886a36f2c
commit 35a802cbd5
3 changed files with 136 additions and 6 deletions
+10 -5
View File
@@ -226,18 +226,21 @@
<button class="pdf-download-btn"
disabled
_="on click
if :selectedFormat is not null
log 'Download requested for format:', :selectedFormat
-- Find selected card
set selectedCard to .pdf-option-card.selected in #pdf-modal
if selectedCard exists
set selectedFormat to selectedCard's @data-cv-format
log 'Download requested for format:', selectedFormat
-- Get current page language
set lang to '{{.Lang}}'
-- Build URL based on selected format
if :selectedFormat is 'short'
if selectedFormat is 'short'
set url to '/export/pdf?lang=' + lang + '&length=short&icons=show&version=extended'
else if :selectedFormat is 'long'
else if selectedFormat is 'long'
set url to '/export/pdf?lang=' + lang + '&length=long&icons=show&version=extended'
else if :selectedFormat is 'current'
else if selectedFormat is 'current'
-- Get current settings from localStorage
set currentLength to localStorage.getItem('cv-length') or 'short'
set currentIcons to localStorage.getItem('cv-icons') or 'show'
@@ -253,6 +256,8 @@
set url to '/export/pdf?lang=' + lang + '&length=' + currentLength + '&icons=' + currentIcons + '&version=' + version
end
log 'Navigating to:', url
-- Trigger download
set window.location.href to url