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 { HorizontalGroup } from '../Layout/Layout';
import { FullWidthButtonContainer, IconButton, Label, RadioButtonGroup } from '../index';
import { IconButton, Label, RadioButtonGroup } from '../index';
import { Field } from '../Forms/Field';
import { Input } from '../Input/Input';
import { MappingType, RangeMap, SelectableValue, ValueMap, ValueMapping } from '@grafana/data';
......@@ -81,15 +81,13 @@ export const MappingRow: React.FC<Props> = ({ valueMapping, updateValueMapping,
return (
<div>
<Field label={label}>
<FullWidthButtonContainer>
<RadioButtonGroup
options={MAPPING_OPTIONS}
value={type}
onChange={type => {
onMappingTypeChange(type!);
}}
/>
</FullWidthButtonContainer>
<RadioButtonGroup
options={MAPPING_OPTIONS}
value={type}
onChange={type => {
onMappingTypeChange(type!);
}}
/>
</Field>
{renderRow()}
</div>
......
......@@ -309,7 +309,7 @@ export class PanelEditorUnconnected extends PureComponent<Props> {
return (
<SplitPane
split="vertical"
minSize={100}
minSize={300}
primary="second"
/* Use persisted state for default size */
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