feat: Adjust code example styling for dynamic height and responsive layout

This commit is contained in:
2025-02-22 23:11:34 -06:00
parent 713761386c
commit ae4bc3e0a9
3 changed files with 10 additions and 3 deletions
+6
View File
@@ -100,6 +100,12 @@
pointer-events: none;
}
.hero > div:nth-child(2) {
flex: 1;
min-width: 45%;
height: 100%;
}
.code {
font-family: var(--font-mono);
font-size: 1em;
@@ -1,6 +1,7 @@
.editorContainer {
width: 100%;
height: 400px;
height: 100%;
min-height: 300px;
border-radius: 8px;
overflow: hidden;
margin: 20px 0;
+1 -1
View File
@@ -32,7 +32,7 @@ export default function CodeExample() {
return (
<div className={styles.editorContainer}>
<Editor
height="400px"
height="100%"
defaultLanguage="typescript"
defaultValue={exampleCode}
theme="vs-dark"