feat(theme): Theme "Mobile" - kompakte Darstellung fuers Handy
Perinco-Farben, aber rund 16 % dichter: --spacing 0.21rem statt 0.25rem, kleinere Ueberschriften (lg bis 5xl), Kopfleiste 3.5rem, flachere Schatten. text-sm/base bleiben, damit iOS beim Tippen in Felder nicht zoomt. Dunkel mit echtem Schwarz fuer OLED. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
2f9c58f202
commit
bea758e651
@@ -76,7 +76,7 @@ router.patch('/me', requireAuth, async (req, res, next) => {
|
||||
const updates = {};
|
||||
if (req.body?.theme !== undefined) {
|
||||
const theme = req.body.theme;
|
||||
if (theme !== null && !['perinco', 'pixel', 'outdoor', 'cyberpunk', 'rainy', 'snow', 'aura'].includes(theme)) {
|
||||
if (theme !== null && !['perinco', 'pixel', 'outdoor', 'cyberpunk', 'rainy', 'snow', 'aura', 'mobile'].includes(theme)) {
|
||||
return res.status(400).json({ error: 'Unbekanntes Design.' });
|
||||
}
|
||||
updates.theme = theme === 'perinco' ? null : theme;
|
||||
|
||||
Reference in New Issue
Block a user