Skip to content

Commit 0384a65

Browse files
michaelblaessclaude
andcommitted
fix: Design-Buttons Overflow, Beispiel aus Highscore entfernen
Theme-Buttons bekommen eigene Klasse mit kleinerer Font (0.78rem) und weniger Padding damit 4 Buttons auf schmale Panels passen. Diff-Buttons allgemein mit text-overflow ellipsis abgesichert. Beispiel-Eintrag aus HIGHSCORE.md entfernt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ec05de7 commit 0384a65

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

public/HIGHSCORE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
|------|------|---------------|-------|
55
| Michael Blaess | 02:09.8 | Mittel | 2026-03-13 |
66
| Michael Blaess | 02:34.0 | Mittel | 2026-03-13 |
7-
| Beispiel | 03:45.2 | Mittel | 2026-02-19 |

src/components/ThemeSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const ThemeSelect: React.FC = () => {
1212
const { themeId, setThemeId } = useTheme();
1313

1414
const renderRow = (ids: typeof THEME_IDS) => (
15-
<div className="difficulty-buttons">
15+
<div className="difficulty-buttons theme-buttons">
1616
{ids.map((id) => (
1717
<button
1818
key={id}

src/index.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ body {
143143
flex: 1;
144144
min-width: 0;
145145
padding: 8px 10px;
146+
overflow: hidden;
147+
text-overflow: ellipsis;
148+
white-space: nowrap;
146149
border: 1px solid var(--border-default);
147150
border-radius: 8px;
148151
background: var(--bg-input);
@@ -164,6 +167,11 @@ body {
164167
font-weight: 600;
165168
}
166169

170+
.theme-buttons .diff-btn {
171+
font-size: 0.78rem;
172+
padding: 8px 6px;
173+
}
174+
167175
.diff-btn:disabled {
168176
opacity: 0.5;
169177
cursor: not-allowed;

0 commit comments

Comments
 (0)