mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-27 17:55:11 +03:00
format
This commit is contained in:
parent
f0e440a58d
commit
d70acdeb22
@ -17,13 +17,13 @@
|
||||
</div>
|
||||
{:else}
|
||||
<div class="flex">
|
||||
<button class="joined-base border-l border-t border-b rounded-l-lg" on:click={leftAction}>
|
||||
<button class="joined-base rounded-l-lg border-l border-t border-b" on:click={leftAction}>
|
||||
<span class="my-2 {wide ? 'mx-[31.5px]' : 'mx-[16px]'}">{leftLabel}</span>
|
||||
</button>
|
||||
<button class="joined-base border" on:click={middleAction}>
|
||||
<span class="my-2 {wide ? 'mx-[31.5px]' : 'mx-[16px]'}">{middleLabel}</span>
|
||||
</button>
|
||||
<button class="joined-base border-r border-t border-b rounded-r-lg" on:click={rightAction}>
|
||||
<button class="joined-base rounded-r-lg border-r border-t border-b" on:click={rightAction}>
|
||||
<span class="my-2 {wide ? 'mx-[31.5px]' : 'mx-[16px]'}">{rightLabel}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
@ -61,7 +61,6 @@ export const PrimarySmallWide: Story = {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
export const PrimaryFilledSmall: Story = {
|
||||
args: {
|
||||
primary: true,
|
||||
|
@ -10,7 +10,7 @@ const meta: Meta<ButtonGroup> = {
|
||||
argTypes: {
|
||||
leftLabel: { control: 'text' },
|
||||
rightLabel: { control: 'text' },
|
||||
middleLabel: { control: 'text' },
|
||||
middleLabel: { control: 'text' }
|
||||
}
|
||||
};
|
||||
|
||||
@ -20,7 +20,7 @@ type Story = StoryObj<ButtonGroup>;
|
||||
export const TwoButtons: Story = {
|
||||
args: {
|
||||
leftLabel: 'Cancel',
|
||||
rightLabel: 'Submit',
|
||||
rightLabel: 'Submit'
|
||||
}
|
||||
};
|
||||
|
||||
@ -28,7 +28,7 @@ export const TwoButtonsWide: Story = {
|
||||
args: {
|
||||
leftLabel: 'Cancel',
|
||||
rightLabel: 'Submit',
|
||||
wide: true,
|
||||
wide: true
|
||||
}
|
||||
};
|
||||
|
||||
@ -36,7 +36,7 @@ export const ThreeButtons: Story = {
|
||||
args: {
|
||||
leftLabel: 'Left',
|
||||
middleLabel: 'Middle',
|
||||
rightLabel: 'Right',
|
||||
rightLabel: 'Right'
|
||||
}
|
||||
};
|
||||
|
||||
@ -45,6 +45,6 @@ export const ThreeButtonsWide: Story = {
|
||||
leftLabel: 'Left',
|
||||
middleLabel: 'Middle',
|
||||
rightLabel: 'Right',
|
||||
wide: true,
|
||||
wide: true
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user