refactor: move inline styles to CSS modules
Some checks failed
CI / cleanup-branch (push) Has been skipped
CI / build (push) Failing after 13s
CI / docker (push) Has been skipped
CI / deploy (push) Has been skipped
CI / deploy-feature (push) Has been skipped

Extract inline fontSize/color styles from LogTab, LayoutShell,
UsersTab, GroupsTab, RolesTab, and LevelFilterBar into CSS modules.
Follows project convention of CSS modules over inline styles.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-07 11:45:02 +02:00
parent 9cbf647203
commit 6a1d3bb129
10 changed files with 162 additions and 44 deletions

View File

@@ -239,7 +239,7 @@ export default function GroupsTab({ highlightId, onHighlightConsumed }: { highli
onChange={(e) => setNewName(e.target.value)}
/>
{duplicateGroupName && (
<span style={{ color: 'var(--error)', fontSize: 12 }}>
<span className={styles.errorText}>
Group name already exists
</span>
)}

View File

@@ -130,7 +130,7 @@ export default function RolesTab({ highlightId, onHighlightConsumed }: { highlig
onChange={(e) => setNewName(e.target.value)}
/>
{duplicateRoleName && (
<span style={{ color: 'var(--error)', fontSize: 12 }}>
<span className={styles.errorText}>
Role name already exists
</span>
)}

View File

@@ -151,3 +151,8 @@
.resetInput {
width: 200px;
}
.errorText {
color: var(--error);
font-size: 12px;
}

View File

@@ -228,7 +228,7 @@ export default function UsersTab({ highlightId, onHighlightConsumed }: { highlig
/>
</div>
{duplicateUsername && (
<span style={{ color: 'var(--error)', fontSize: 12 }}>
<span className={styles.errorText}>
Username already exists
</span>
)}