Skip to content

Commit d26c102

Browse files
author
gfer
committed
Карточка погоды: увеличен шрифт до уровня остальных карточек
Made-with: Cursor
1 parent 52a54f3 commit d26c102

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

app/ui/src/components/SunHorizon.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,32 +36,32 @@ export const SunHorizon = ({ sunTimes }: SunHorizonProps) => {
3636
}}
3737
>
3838
<Box>
39-
<Typography variant="caption" color="text.secondary" sx={{ fontSize: '0.65rem' }}>
39+
<Typography variant="caption" color="text.secondary" sx={{ fontSize: '0.75rem' }}>
4040
{t('weather.dawn')} {dawn}
4141
</Typography>
42-
<Typography variant="caption" color="text.secondary" display="block" sx={{ fontSize: '0.7rem' }}>
42+
<Typography variant="caption" color="text.secondary" display="block" sx={{ fontSize: '0.8rem' }}>
4343
{t('weather.sunrise')}
4444
</Typography>
45-
<Typography variant="body2" fontWeight={600} sx={{ fontSize: '0.875rem' }}>
45+
<Typography variant="body2" fontWeight={600}>
4646
{sunrise}
4747
</Typography>
4848
</Box>
4949
<Box>
50-
<Typography variant="caption" color="text.secondary" display="block" sx={{ fontSize: '0.7rem' }}>
50+
<Typography variant="caption" color="text.secondary" display="block" sx={{ fontSize: '0.8rem' }}>
5151
{t('weather.noon')}
5252
</Typography>
53-
<Typography variant="body2" fontWeight={600} sx={{ fontSize: '0.875rem' }}>
53+
<Typography variant="body2" fontWeight={600}>
5454
{noon}
5555
</Typography>
5656
</Box>
5757
<Box>
58-
<Typography variant="caption" color="text.secondary" sx={{ fontSize: '0.65rem' }}>
58+
<Typography variant="caption" color="text.secondary" sx={{ fontSize: '0.75rem' }}>
5959
{t('weather.dusk')} {dusk}
6060
</Typography>
61-
<Typography variant="caption" color="text.secondary" display="block" sx={{ fontSize: '0.7rem' }}>
61+
<Typography variant="caption" color="text.secondary" display="block" sx={{ fontSize: '0.8rem' }}>
6262
{t('weather.sunset')}
6363
</Typography>
64-
<Typography variant="body2" fontWeight={600} sx={{ fontSize: '0.875rem' }}>
64+
<Typography variant="body2" fontWeight={600}>
6565
{sunset}
6666
</Typography>
6767
</Box>

app/ui/src/components/WeatherCard.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,28 +63,28 @@ export const WeatherCard = ({ weather, date }: WeatherCardProps) => {
6363
return (
6464
<Paper sx={{ padding: 1.5, height: '100%', display: 'flex', flexDirection: 'column', minHeight: 0 }}>
6565
<Stack spacing={1} sx={{ flex: 1, minHeight: 0 }}>
66-
<Typography variant="h6" sx={{ fontSize: '1rem' }}>{t('weather.title')}</Typography>
66+
<Typography variant="h6">{t('weather.title')}</Typography>
6767
<Box
6868
sx={{
6969
display: 'flex',
7070
flexWrap: 'wrap',
71-
gap: 0.75,
71+
gap: 1,
7272
'& .MuiChip-root': {
73-
minWidth: 100,
74-
height: 28,
75-
'& .MuiChip-label': { fontSize: '0.75rem' },
73+
minWidth: 110,
74+
height: 32,
75+
'& .MuiChip-label': { fontSize: '0.875rem' },
7676
},
7777
}}
7878
>
7979
<Chip
80-
icon={<WeatherIcon sx={{ fontSize: 18 }} />}
80+
icon={<WeatherIcon sx={{ fontSize: 20 }} />}
8181
label={weather.main}
8282
title={weather.description}
8383
/>
84-
<Chip icon={<CloudIcon sx={{ fontSize: 18 }} />} label={`${weather.clouds}%`} />
85-
<Chip icon={<TempIcon sx={{ fontSize: 18 }} />} label={`${Math.round(weather.temp)}°C`} />
86-
<Chip icon={<HumidityIcon sx={{ fontSize: 18 }} />} label={`${weather.humidity}%`} />
87-
<Chip icon={<WindIcon sx={{ fontSize: 18 }} />} label={`${weather.wind_speed} m/s`} />
84+
<Chip icon={<CloudIcon sx={{ fontSize: 20 }} />} label={`${weather.clouds}%`} />
85+
<Chip icon={<TempIcon sx={{ fontSize: 20 }} />} label={`${Math.round(weather.temp)}°C`} />
86+
<Chip icon={<HumidityIcon sx={{ fontSize: 20 }} />} label={`${weather.humidity}%`} />
87+
<Chip icon={<WindIcon sx={{ fontSize: 20 }} />} label={`${weather.wind_speed} m/s`} />
8888
</Box>
8989
{sunTimes && (
9090
<Box sx={{ pt: 0.75, borderTop: 1, borderColor: 'divider' }}>

0 commit comments

Comments
 (0)