fix: preserve Skills section in parser and improve button visibility

- Fix stripBrackets() removing Skills section header
  - Add structural header whitelist (Skills, Status, Inventory, etc.)
  - Implement smart look-ahead to detect content below labels
  - Previous logic incorrectly removed 'Skills:' when followed by category labels
- Add proper theming to category action buttons (.rpg-category-action)
  - Match styling of view toggle buttons
  - Use SmartTheme colors for better visibility
- Fix RPG attributes styling in Tracker Editor
  - Change background from --rpg-accent to --SmartThemeBlurTintColor
  - Update border to match other themed inputs

Resolves issue where skills with categories were all showing as 'Uncategorized'
due to the Skills section being truncated during parsing.
This commit is contained in:
Lucas 'Paperboy' Rose-Winters
2025-11-07 00:13:34 +11:00
parent 9f3ee18e4e
commit 643acb8142
2 changed files with 108 additions and 3 deletions
+22 -2
View File
@@ -5260,8 +5260,8 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
align-items: center;
gap: 0.5em;
padding: 0.5em;
background: var(--rpg-accent);
border: 1px solid var(--rpg-border);
background: var(--SmartThemeBlurTintColor);
border: 2px solid var(--SmartThemeBorderColor);
border-radius: 0.375em;
}
@@ -8112,6 +8112,26 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
gap: 0.5rem;
}
.rpg-category-action {
padding: 0.35rem 0.6rem;
background: var(--SmartThemeBlurTintColor);
border: 2px solid var(--SmartThemeBorderColor);
border-radius: 0.25rem;
color: var(--SmartThemeFastUISliderColColor);
cursor: pointer;
transition: all 0.2s ease;
font-size: 0.9rem;
display: flex;
align-items: center;
justify-content: center;
}
.rpg-category-action:hover {
background: var(--SmartThemeBlurTintColor);
border-color: var(--rpg-highlight);
color: var(--rpg-highlight);
}
.rpg-category-content {
margin-top: 0.75rem;
}