File tree Expand file tree Collapse file tree
tools/diagnostics-app/src/app/views Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { POWERSYNC_MONACO_THEME } from '@/components/providers/MonacoThemeProvid
66
77export 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 }
You can’t perform that action at this time.
0 commit comments