mirror of https://github.com/buster-so/buster.git
change segments for edit metrics
This commit is contained in:
parent
4d48289167
commit
3f04b727e5
|
@ -47,7 +47,7 @@ export const EditBarSorting: React.FC<{
|
|||
return (
|
||||
<LabelAndInput label="Sorting">
|
||||
<div className="flex justify-end">
|
||||
<AppSegmented options={options} value={selectedOption} onChange={onChange} block={false} />
|
||||
<AppSegmented options={options} value={selectedOption} onChange={onChange} type="button" />
|
||||
</div>
|
||||
</LabelAndInput>
|
||||
);
|
||||
|
|
|
@ -57,7 +57,7 @@ export const EditDisplayAs: React.FC<{
|
|||
return (
|
||||
<LabelAndInput label="Display as">
|
||||
<div className="flex justify-end">
|
||||
<AppSegmented options={options} block={false} value={selectedOption} onChange={onChange} />
|
||||
<AppSegmented options={options} type="button" value={selectedOption} onChange={onChange} />
|
||||
</div>
|
||||
</LabelAndInput>
|
||||
);
|
||||
|
|
|
@ -41,7 +41,7 @@ export const EditLabelStyle: React.FC<{
|
|||
return (
|
||||
<LabelAndInput label="Style">
|
||||
<div className="flex items-center justify-end">
|
||||
<AppSegmented options={options} value={style} onChange={onChange} />
|
||||
<AppSegmented options={options} value={style} type="button" onChange={onChange} />
|
||||
</div>
|
||||
</LabelAndInput>
|
||||
);
|
||||
|
|
|
@ -116,9 +116,9 @@ export const EditLineStyle: React.FC<{
|
|||
<div className="flex justify-end">
|
||||
<AppSegmented
|
||||
options={shownOptions}
|
||||
block={false}
|
||||
value={selectedOption}
|
||||
onChange={onChange}
|
||||
type="button"
|
||||
/>
|
||||
</div>
|
||||
</LabelAndInput>
|
||||
|
|
|
@ -12,7 +12,7 @@ export const EditShowDataLabel: React.FC<{
|
|||
({ showDataLabels, rowCount, onUpdateColumnSettingConfig }) => {
|
||||
return (
|
||||
<LabelAndInput label="Show data labels">
|
||||
<div className="flex w-full justify-end space-x-2">
|
||||
<div className="flex w-full justify-end gap-x-2">
|
||||
<WarningIcon rowCount={rowCount} />
|
||||
<Switch
|
||||
defaultChecked={showDataLabels}
|
||||
|
|
|
@ -43,7 +43,7 @@ export const SelectAxisDropZone: React.FC<{
|
|||
<SortableContext
|
||||
items={zone.items.map((item) => item.id)}
|
||||
strategy={verticalListSortingStrategy}>
|
||||
<div className={cn('space-y-0.5 transition', extraClass)}>
|
||||
<div className={cn('space-y-0.5 rounded transition', extraClass)}>
|
||||
{zone.items.map((item) => (
|
||||
<SelectAxisSortableItem
|
||||
key={item.originalId}
|
||||
|
|
Loading…
Reference in New Issue