Skip to content

Commit 6878599

Browse files
committed
Hide to stop thrashing on first load
1 parent 517e8ce commit 6878599

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/app/bigtextconfig/page.module.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
.page {
1212
font-family: var(--font-geist-mono);
1313
}
14-
1514
.BigTextConfig {
1615
display: flex;
1716
flex-direction: column;
@@ -28,7 +27,9 @@
2827
". . ."
2928
". delete .";
3029
}
31-
30+
.hidden {
31+
display: none;
32+
}
3233
.BigTextConfig--qr {
3334
grid-area: qr;
3435
}

src/app/bigtextconfig/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function Page() {
1313
const [orientation, setOrientation] = useState<"horizontal" | "vertical" | undefined>("horizontal");
1414
const [isFullscreen, setFullscreen] = useState(false);
1515
return (<div className={styles.page}>
16-
<div className={styles.BigTextConfig}>
16+
<div className={[styles.BigTextConfig, isFullscreen ? styles.hidden : undefined].filter(item => item).join(" ")}>
1717
<LargeTextInputComponent
1818
value={text}
1919
onChange={(data: string) => {

0 commit comments

Comments
 (0)