mirror of
https://github.com/jaronpate/unicord.git
synced 2026-10-18 21:47:40 +00:00
feat: Adjust code example styling for dynamic height and responsive layout
This commit is contained in:
@@ -100,6 +100,12 @@
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hero > div:nth-child(2) {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 45%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.code {
|
.code {
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
@@ -145,4 +151,4 @@
|
|||||||
|
|
||||||
.codeBlock code:focus-within {
|
.codeBlock code:focus-within {
|
||||||
background: var(--gray-alpha-200);
|
background: var(--gray-alpha-200);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
.editorContainer {
|
.editorContainer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 400px;
|
height: 100%;
|
||||||
|
min-height: 300px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export default function CodeExample() {
|
|||||||
return (
|
return (
|
||||||
<div className={styles.editorContainer}>
|
<div className={styles.editorContainer}>
|
||||||
<Editor
|
<Editor
|
||||||
height="400px"
|
height="100%"
|
||||||
defaultLanguage="typescript"
|
defaultLanguage="typescript"
|
||||||
defaultValue={exampleCode}
|
defaultValue={exampleCode}
|
||||||
theme="vs-dark"
|
theme="vs-dark"
|
||||||
|
|||||||
Reference in New Issue
Block a user