Skip to content

Commit 379bedc

Browse files
fixed phone version themes styles in settings
1 parent 94120d2 commit 379bedc

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/app/me/settings/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import Image from 'next/image';
1212
import { Me } from '@/app/modules/components/MeSidebar';
1313
import { Fira_Code } from "next/font/google";
1414
import { formatDateHuman } from '@/app/modules/components/Card';
15-
import { getTheme } from '@/app/modules/providers';
1615
import IconSvg from '@/app/resources/icon.svg';
1716
import {
1817
IconUser,
@@ -286,7 +285,7 @@ const Theme = ({ data, theme, onChange }: { data: ThemeProps, theme: string, onC
286285
}
287286

288287
return (
289-
<div onClick={() => onChange(data.name)} style={{ cursor: 'pointer' }}>
288+
<div onClick={() => onChange(data.name)} style={{ cursor: 'pointer' }} className={Style_themes.clickable}>
290289
<div style={{ backgroundColor: data['--main-bg-color'] }} className={Style_themes.background}>
291290
<div style={{ backgroundColor: data['--main-card-color'] }} className={Style_themes.card}>
292291
<div style={{ backgroundColor: data['--main-element-color'] }} className={Style_themes.icon} />

src/app/styles/me/themes.module.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,19 @@
7272
.parent {
7373
display: flex;
7474
flex-direction: row;
75-
flex-wrap: wrap;
7675
gap: 1rem;
7776
}
7877

79-
@media (max-width: 650px) {
78+
@media (max-width: 840px) {
8079
.parent {
80+
flex-direction: column;
8181
justify-content: center;
82+
gap: calc(1rem - 10px);
83+
}
84+
85+
.clickable,
86+
.footer,
87+
.background {
88+
width: 100%;
8289
}
8390
}

0 commit comments

Comments
 (0)