mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 19:53:48 +08:00
fix: overflow in radio button group (#2687)
This commit is contained in:
@@ -94,11 +94,18 @@ Dropdown.args = {
|
|||||||
|
|
||||||
export const RadioGroup: StoryFn = ({ ...props }) => {
|
export const RadioGroup: StoryFn = ({ ...props }) => {
|
||||||
return (
|
return (
|
||||||
<RadioButtonGroup {...props}>
|
<>
|
||||||
<RadioButton value="all">All</RadioButton>
|
<RadioButtonGroup {...props}>
|
||||||
<RadioButton value="page">Page</RadioButton>
|
<RadioButton value="all">All</RadioButton>
|
||||||
<RadioButton value="edgeless">Edgeless</RadioButton>
|
<RadioButton value="page">Page</RadioButton>
|
||||||
</RadioButtonGroup>
|
<RadioButton value="edgeless">Edgeless</RadioButton>
|
||||||
|
</RadioButtonGroup>
|
||||||
|
<RadioButtonGroup {...props}>
|
||||||
|
<RadioButton value="all">Long long text and some more</RadioButton>
|
||||||
|
<RadioButton value="page">Lorem ipsum dolor sit amet</RadioButton>
|
||||||
|
<RadioButton value="edgeless">Long long text</RadioButton>
|
||||||
|
</RadioButtonGroup>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
RadioGroup.args = {
|
RadioGroup.args = {
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export const radioButton = style({
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
width: '75px',
|
padding: '0 30px',
|
||||||
height: '24px',
|
height: '24px',
|
||||||
borderRadius: '8px',
|
borderRadius: '8px',
|
||||||
filter: 'drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.1))',
|
filter: 'drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.1))',
|
||||||
|
|||||||
Reference in New Issue
Block a user