Repository navigation
Commit efd9490
authored
fix(ui): mobile profile row wrap, notifications panel deploy, language selector (#11)
* fix(ui): wrap profile controls on mobile to prevent overlap
The profile section's main row used a non-wrapping flex with a fixed-width
language select and a logout button that kept its text label at every
breakpoint. On narrow viewports the row crammed everything into one line
and truncated the display name to ~0px width, so the name vanished and the
action buttons (password, notifications, logout) jammed together.
- Add flex-wrap to the row and its inner controls group so they reflow to a
second line on small screens.
- Hide the logout button's text label below sm (consistent with the password
and notifications buttons) so it becomes icon-only on mobile.
Verified at 375px (display name 0px->49px, select wraps to line 2, nothing
off-screen) and 1440px (single line, unchanged).
Refs #9
* fix(ui): deploy profile notifications panel always and fix language selector
Notifications button in the profile section rendered its toggles only
when estado.suscrito was true, so on a device that had not activated
push the button did nothing on tap. Now the panel always deploys: shows
the per-type toggles when subscribed, or a short description with an
'Activar alertas' call to action (or the relevant support reason) when
not. Uses activar/soporte from usePush and reuses the existing notif
i18n keys.
The language Select displayed a stale value because it was derived from
user.language, which is fetched once on mount and never updated after a
change. Derive the displayed value from i18n.language (the source of
truth) with normalization, so the Select reflects the active language
immediately. Also collapse the trigger to a Languages icon on mobile
(w-9) and keep the full text select at sm and above.
Refs #9, Refs #10
---------
Co-authored-by: gnacho <hnacho@proton.me>1 parent 234f71b commit efd9490
1 file changed
Lines changed: 60 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
931 | 932 | | |
932 | 933 | | |
933 | 934 | | |
934 | | - | |
| 935 | + | |
935 | 936 | | |
936 | 937 | | |
937 | 938 | | |
| |||
1004 | 1005 | | |
1005 | 1006 | | |
1006 | 1007 | | |
| 1008 | + | |
1007 | 1009 | | |
1008 | 1010 | | |
1009 | 1011 | | |
| |||
1036 | 1038 | | |
1037 | 1039 | | |
1038 | 1040 | | |
1039 | | - | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
1040 | 1051 | | |
1041 | 1052 | | |
1042 | 1053 | | |
1043 | | - | |
1044 | | - | |
| 1054 | + | |
| 1055 | + | |
1045 | 1056 | | |
1046 | 1057 | | |
1047 | 1058 | | |
1048 | 1059 | | |
1049 | 1060 | | |
1050 | 1061 | | |
1051 | | - | |
| 1062 | + | |
1052 | 1063 | | |
1053 | 1064 | | |
1054 | 1065 | | |
| |||
1083 | 1094 | | |
1084 | 1095 | | |
1085 | 1096 | | |
1086 | | - | |
1087 | | - | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
1088 | 1102 | | |
1089 | 1103 | | |
1090 | 1104 | | |
| |||
1129 | 1143 | | |
1130 | 1144 | | |
1131 | 1145 | | |
1132 | | - | |
| 1146 | + | |
1133 | 1147 | | |
1134 | 1148 | | |
1135 | 1149 | | |
| |||
1177 | 1191 | | |
1178 | 1192 | | |
1179 | 1193 | | |
1180 | | - | |
| 1194 | + | |
1181 | 1195 | | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
1190 | 1232 | | |
1191 | | - | |
| 1233 | + | |
1192 | 1234 | | |
1193 | 1235 | | |
1194 | 1236 | | |
| |||
0 commit comments