mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 16:57:14 -06:00
Scenes: Fixes layout when the editor is active (#52291)
This commit is contained in:
parent
8b7516bc55
commit
85309f4e63
@ -55,8 +55,10 @@ function SceneRenderer({ model }: SceneComponentProps<Scene>) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Page navId="scenes" layout={PageLayoutType.Dashboard} toolbar={pageToolbar}>
|
<Page navId="scenes" layout={PageLayoutType.Dashboard} toolbar={pageToolbar}>
|
||||||
<layout.Component model={layout} isEditing={isEditing} />
|
<div style={{ flexGrow: 1, display: 'flex', gap: '8px', overflow: 'auto' }}>
|
||||||
{$editor && <$editor.Component model={$editor} isEditing={isEditing} />}
|
<layout.Component model={layout} isEditing={isEditing} />
|
||||||
|
{$editor && <$editor.Component model={$editor} isEditing={isEditing} />}
|
||||||
|
</div>
|
||||||
</Page>
|
</Page>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,7 @@ export class SceneToolbarInput extends SceneObjectBase<SceneToolbarInputState> {
|
|||||||
return (
|
return (
|
||||||
<Input
|
<Input
|
||||||
defaultValue={state.value}
|
defaultValue={state.value}
|
||||||
|
width={8}
|
||||||
onBlur={(evt) => {
|
onBlur={(evt) => {
|
||||||
model.state.onChange(parseInt(evt.currentTarget.value, 10));
|
model.state.onChange(parseInt(evt.currentTarget.value, 10));
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user