change segments for edit metrics

This commit is contained in:
Nate Kelley 2025-04-01 16:09:22 -06:00
parent 4d48289167
commit 3f04b727e5
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
6 changed files with 6 additions and 6 deletions

View File

@ -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>
);

View File

@ -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>
);

View File

@ -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>
);

View File

@ -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>

View File

@ -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}

View File

@ -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}