Skip to content

Commit bdcc111

Browse files
Fix bottom padding for all Cabinet sheets to avoid nav bar overlap
1 parent af4ccfe commit bdcc111

2 files changed

Lines changed: 17 additions & 15 deletions

File tree

web/src/pages/Cabinet/components/NotificationEditorSheet.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const NotificationEditorSheet: React.FC<NotificationEditorSheetProps> = (
5959

6060
return (
6161
<BottomSheet isOpen={isOpen} onClose={onClose} title="Налаштування сповіщень">
62-
62+
<div style={{ padding: '0 16px 120px' }}>
6363
<div className={styles.formGroup}>
6464
<div className={styles.label}>Як назвемо локацію?</div>
6565
<input
@@ -159,7 +159,7 @@ export const NotificationEditorSheet: React.FC<NotificationEditorSheetProps> = (
159159
Видалити локацію
160160
</button>
161161
)}
162-
162+
</div>
163163
</BottomSheet>
164164
);
165165
};

web/src/pages/Cabinet/components/SubGroupSheet.tsx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,21 @@ export const SubGroupSheet: React.FC<SubGroupSheetProps> = ({
2323
}) => {
2424
return (
2525
<BottomSheet isOpen={isOpen} onClose={onClose} title="Оберіть підчергу">
26-
<div className={styles.grid}>
27-
{GROUPS.map(group => (
28-
<button
29-
key={group}
30-
className={`${styles.button} ${selectedGroup === group ? styles.buttonSelected : ''}`}
31-
onClick={() => {
32-
onSelectGroup(group);
33-
onClose();
34-
}}
35-
>
36-
{group}
37-
</button>
38-
))}
26+
<div style={{ padding: '16px 16px 120px' }}>
27+
<div className={styles.grid}>
28+
{GROUPS.map(group => (
29+
<button
30+
key={group}
31+
className={`${styles.button} ${selectedGroup === group ? styles.buttonSelected : ''}`}
32+
onClick={() => {
33+
onSelectGroup(group);
34+
onClose();
35+
}}
36+
>
37+
{group}
38+
</button>
39+
))}
40+
</div>
3941
</div>
4042
</BottomSheet>
4143
);

0 commit comments

Comments
 (0)