Skip to content

Commit 5c5c0fb

Browse files
authored
Merge pull request #3653 from sniok/fix-documentation-height
frontend: Fix height for DocsViewer
2 parents 4293780 + 59bd63e commit 5c5c0fb

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

frontend/src/components/common/Resource/EditorDialog.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -480,15 +480,7 @@ export default function EditorDialog(props: EditorDialogProps) {
480480
{
481481
label: t('translation|Documentation'),
482482
component: (
483-
<Box
484-
p={2}
485-
sx={{
486-
overflowY: 'auto',
487-
overflowX: 'hidden',
488-
}}
489-
maxHeight={600}
490-
height={600}
491-
>
483+
<Box sx={{ height: '100%', overflowY: 'auto' }}>
492484
<DocsViewer docSpecs={docSpecs} />
493485
</Box>
494486
),

frontend/src/components/common/Resource/__snapshots__/EditorDialog.EditorDialogWithResource.stories.storyshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
role="tabpanel"
204204
>
205205
<div
206-
class="MuiBox-root css-94bk7g"
206+
class="MuiBox-root css-u718rw"
207207
>
208208
<div
209209
class="MuiBox-root css-19midj6"

frontend/src/components/common/Resource/__snapshots__/EditorDialog.ExtraActions.stories.storyshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
role="tabpanel"
240240
>
241241
<div
242-
class="MuiBox-root css-94bk7g"
242+
class="MuiBox-root css-u718rw"
243243
>
244244
<div
245245
class="MuiBox-root css-19midj6"

0 commit comments

Comments
 (0)