mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
NewPanelEditor: increase sidebar min width, value mappings radio no longer full width (#23889)
This commit is contained in:
parent
d1665222a7
commit
a56e55ac6c
@ -1,6 +1,6 @@
|
|||||||
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,
|
|||||||
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> {
|
|||||||
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}
|
||||||
|
Loading…
Reference in New Issue
Block a user