Skip to content

Commit ef5e844

Browse files
mhawrylukAleksander Katan
andauthored
fix: Example max height with code editor shown (#1141)
* fix: Example max height with code editor shown * Multiply rem by ~0.4 --------- Co-authored-by: Aleksander Katan <[email protected]>
1 parent 4a33c8a commit ef5e844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/typegpu-docs/src/components/ExampleView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function ExampleView({ example }: Props) {
111111
className={cs(
112112
'flex justify-evenly items-center flex-wrap h-full box-border flex-col md:flex-row md:gap-4',
113113
codeEditorShowing
114-
? 'md:max-h-[calc(50vh-3rem)] md:overflow-auto'
114+
? 'md:max-h-[calc(40vh-1.25rem)] md:overflow-auto'
115115
: '',
116116
)}
117117
>

0 commit comments

Comments
 (0)