mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
e29cb2debe
I'm updating the magnify button to be always visible and animate a transition between being a "Magnify" button and a "Minimize" button. This also cleans up some text shrinking behavior in the block frame header so the end icons are always visible. Also fixes some height discrepancies in the block frame header. Also implements a `prefers-reduced-motion` query for the tilelayout and block frame to ensure transitions are not set if the user does not want them.
26 lines
465 B
TypeScript
26 lines
465 B
TypeScript
import type { Meta, StoryObj } from "@storybook/react";
|
|
import { MagnifyIcon } from "./magnify";
|
|
|
|
const meta = {
|
|
title: "Icons/Magnify",
|
|
component: MagnifyIcon,
|
|
args: {
|
|
enabled: true,
|
|
},
|
|
} satisfies Meta<typeof MagnifyIcon>;
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Enabled: Story = {
|
|
args: {
|
|
enabled: true,
|
|
},
|
|
};
|
|
|
|
export const Disabled: Story = {
|
|
args: {
|
|
enabled: false,
|
|
},
|
|
};
|