Skip to content

Commit f6e79f2

Browse files
authored
fix(FullScreen): ensure the content is scrollable (#1723)
1 parent 14b96e7 commit f6e79f2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/components/Fullscreen/Fullscreen.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.ydb-fullscreen {
2-
display: flex;
32
overflow: hidden;
43
flex-grow: 1;
54

@@ -25,4 +24,12 @@
2524
&_fullscreen &__close-button {
2625
display: block;
2726
}
27+
28+
&__content {
29+
display: flex;
30+
overflow: auto;
31+
32+
width: 100%;
33+
height: 100%;
34+
}
2835
}

src/components/Fullscreen/Fullscreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function Fullscreen({children, className}: FullscreenProps) {
7878
>
7979
<Icon data={disableFullscreenIcon} />
8080
</Button>
81-
{children}
81+
<div className={b('content')}>{children}</div>
8282
</div>
8383
</Portal>
8484
</div>

0 commit comments

Comments
 (0)