mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(site): fix filter font size (#11028)
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
import { OptionItem } from "./filter";
|
||||
import type { Meta, StoryObj } from "@storybook/react";
|
||||
|
||||
const meta: Meta<typeof OptionItem> = {
|
||||
title: "components/Filter/OptionItem",
|
||||
component: OptionItem,
|
||||
decorators: [
|
||||
(Story) => {
|
||||
return (
|
||||
<div style={{ width: "300px" }}>
|
||||
<Story />
|
||||
</div>
|
||||
);
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof OptionItem>;
|
||||
|
||||
export const Selected: Story = {
|
||||
args: {
|
||||
option: {
|
||||
label: "Success option",
|
||||
value: "success",
|
||||
},
|
||||
isSelected: true,
|
||||
},
|
||||
};
|
||||
|
||||
export const NotSelected: Story = {
|
||||
args: {
|
||||
option: {
|
||||
label: "Success option",
|
||||
value: "success",
|
||||
},
|
||||
isSelected: false,
|
||||
},
|
||||
};
|
||||
@@ -524,7 +524,7 @@ export const OptionItem: FC<OptionItemProps> = ({
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
gap: 16,
|
||||
fontSize: 4,
|
||||
fontSize: 14,
|
||||
overflow: "hidden",
|
||||
width: "100%",
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user