Skip to content

fix(librarian): correct stale advanced-toggle CSS classes - #41

Open
unleashedgenius wants to merge 1 commit into
pixelnull:stagingfrom
unleashedgenius:fix/librarian-advanced-toggle-classes
Open

fix(librarian): correct stale advanced-toggle CSS classes#41
unleashedgenius wants to merge 1 commit into
pixelnull:stagingfrom
unleashedgenius:fix/librarian-advanced-toggle-classes

Conversation

@unleashedgenius

Copy link
Copy Markdown

Summary

The Librarian settings' "Show Advanced" toggle in settings-popup.html used dle-advanced-chevron and dle-advanced-content classes, which have no matching rules in style.css. Every other "Show Advanced" toggle in the same file (Vault Tags, Matching, Injection, AI Prompt & Context, AI Filtering, AI Search, Index — 7 total) correctly uses dle-advanced-icon / dle-advanced-section, which are styled at style.css:282 and style.css:849.

As a result, only the Librarian Advanced toggle rendered without the chevron rotation/spacing styling that every other Advanced section gets.

Root cause

Likely a naming-convention drift — the Librarian section's markup used an earlier/local class-naming scheme (-chevron / -content) that was never reconciled with the convention (-icon / -section) used elsewhere.

Fix

Renamed the two classes to match the established convention (2-line diff in settings-popup.html).

Test plan

  • npm run test:all — 6866 passed, 0 failed
  • npm run lint — 0 errors (pre-existing warnings unrelated to this file)
  • Manually verified in a running SillyTavern instance

The Librarian settings' "Show Advanced" toggle used dle-advanced-chevron
and dle-advanced-content, which have no matching rules in style.css.
Every other Advanced toggle in settings-popup.html (Vault Tags, Matching,
Injection, AI Prompt & Context, AI Filtering, AI Search, Index) uses
dle-advanced-icon / dle-advanced-section, which are styled at
style.css:282 and style.css:849. Align the Librarian toggle with the
established convention so it gets the same chevron and collapsible
styling as the rest of the settings panel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant