Skip to content

Commit b614307

Browse files
authored
Fixed Sync Diagnostics Client dynamic schema height (#858)
1 parent 27909d2 commit b614307

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.changeset/tame-queens-fold.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@powersync/diagnostics-app': minor
3+
---
4+
5+
Fixed the height of the schema editor on the Dynamic Schema page to fill the available viewport height

tools/diagnostics-app/src/app/views/schema.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { POWERSYNC_MONACO_THEME } from '@/components/providers/MonacoThemeProvid
66

77
export default function SchemaPage() {
88
const schema = schemaManager.schemaToString();
9-
const lineCount = schema.split('\n').length;
109

1110
return (
1211
<NavigationPage title="Dynamic Schema">
@@ -23,7 +22,7 @@ export default function SchemaPage() {
2322
<CardContent>
2423
<div className="rounded-lg overflow-hidden border">
2524
<Editor
26-
height={`${Math.min(Math.max(lineCount * 20, 200), 600)}px`}
25+
height="calc(100vh - 300px)"
2726
language="typescript"
2827
theme={POWERSYNC_MONACO_THEME}
2928
value={schema}

0 commit comments

Comments
 (0)