Skip to content

Commit 3110aeb

Browse files
committed
fix
1 parent 4694584 commit 3110aeb

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/components/Yaml/YamlViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const YamlViewer: FC<YamlViewerProps> = ({ yamlString, filename, yamlStri
4646
</FlexBox>
4747

4848
{/* Use controlled value with a stable model path to update content without remounting */}
49-
<YamlEditor height="90vh" value={yamlString} path={`${filename}.yaml`} options={{ readOnly: true }} />
49+
<YamlEditor value={yamlString} path={`${filename}.yaml`} options={{ readOnly: true }} />
5050
</div>
5151
);
5252
};

src/components/YamlEditor/YamlDiffEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const YamlDiffEditor = (props: YamlDiffEditorProps) => {
4242
{...rest}
4343
theme={computedTheme}
4444
options={simplifiedOptions}
45-
height="90vh"
45+
height="100%"
4646
// Force YAML language for both panes
4747
language="yaml"
4848
/>

src/components/YamlEditor/YamlEditor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const YamlEditor = (props: YamlEditorProps) => {
2222
{...rest}
2323
theme={computedTheme}
2424
options={enforcedOptions}
25+
height="100%"
2526
// Force YAML language for this editor wrapper
2627
language="yaml"
2728
/>

0 commit comments

Comments
 (0)