Skip to content

Commit 0697488

Browse files
temss-frontArtem
andauthored
fix(gallery): перенос safe-area отступа (#1756)
* fix(gallery): перенос safe-area отступа * fix(gallery): replace safe-area by var from themes --------- Co-authored-by: Artem <[email protected]>
1 parent a91671a commit 0697488

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.changeset/good-numbers-care.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@alfalab/core-components-gallery': patch
3+
---
4+
5+
safe-area отступы перенесены из modal в container

packages/gallery/src/index.module.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import '../../vars/src/index.css';
2+
@import '../../vars/src/safe-area.css';
23

34
.container {
45
position: relative;
@@ -10,6 +11,8 @@
1011
height: 100%;
1112
width: 100%;
1213
background-color: var(--color-static-neutral-0-inverted);
14+
padding-top: var(--sat);
15+
padding-bottom: var(--sab);
1316

1417
&.mobile {
1518
overflow: hidden;
@@ -21,8 +24,6 @@
2124
width: 100vw;
2225
height: 100vh;
2326
background: transparent;
24-
padding: env(safe-area-inset-top, var(--gap-0)) var(--gap-0),
25-
env(safe-area-inset-bottom, var(--gap-0));
2627
}
2728

2829
.navigationVideo {

0 commit comments

Comments
 (0)