Commit a56e55ac by Dominik Prokop Committed by GitHub

NewPanelEditor: increase sidebar min width, value mappings radio no longer full width (#23889)

parent d1665222
import React, { ChangeEvent } from 'react'; import React, { ChangeEvent } from 'react';
import { HorizontalGroup } from '../Layout/Layout'; import { HorizontalGroup } from '../Layout/Layout';
import { FullWidthButtonContainer, IconButton, Label, RadioButtonGroup } from '../index'; import { IconButton, Label, RadioButtonGroup } from '../index';
import { Field } from '../Forms/Field'; import { Field } from '../Forms/Field';
import { Input } from '../Input/Input'; import { Input } from '../Input/Input';
import { MappingType, RangeMap, SelectableValue, ValueMap, ValueMapping } from '@grafana/data'; import { MappingType, RangeMap, SelectableValue, ValueMap, ValueMapping } from '@grafana/data';
...@@ -81,15 +81,13 @@ export const MappingRow: React.FC<Props> = ({ valueMapping, updateValueMapping, ...@@ -81,15 +81,13 @@ export const MappingRow: React.FC<Props> = ({ valueMapping, updateValueMapping,
return ( return (
<div> <div>
<Field label={label}> <Field label={label}>
<FullWidthButtonContainer> <RadioButtonGroup
<RadioButtonGroup options={MAPPING_OPTIONS}
options={MAPPING_OPTIONS} value={type}
value={type} onChange={type => {
onChange={type => { onMappingTypeChange(type!);
onMappingTypeChange(type!); }}
}} />
/>
</FullWidthButtonContainer>
</Field> </Field>
{renderRow()} {renderRow()}
</div> </div>
......
...@@ -309,7 +309,7 @@ export class PanelEditorUnconnected extends PureComponent<Props> { ...@@ -309,7 +309,7 @@ export class PanelEditorUnconnected extends PureComponent<Props> {
return ( return (
<SplitPane <SplitPane
split="vertical" split="vertical"
minSize={100} minSize={300}
primary="second" primary="second"
/* Use persisted state for default size */ /* Use persisted state for default size */
defaultSize={uiState.rightPaneSize} defaultSize={uiState.rightPaneSize}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment