mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-31 12:20:26 +08:00
Fix the visual test on the Label component (#8078)
* Set the chromatic parameters on Label's stories to test it in different viewports * Make the mock text longer
This commit is contained in:
parent
d7461aab51
commit
367a20c525
@ -1,10 +1,19 @@
|
||||
<script context="module">
|
||||
import { Template, Story } from "@storybook/addon-svelte-csf";
|
||||
import { allModes } from "../storybook/modes";
|
||||
import Label from "./Index.svelte";
|
||||
|
||||
export const meta = {
|
||||
title: "Components/Label",
|
||||
component: Label
|
||||
component: Label,
|
||||
parameters: {
|
||||
chromatic: {
|
||||
modes: {
|
||||
desktop: allModes["desktop"],
|
||||
mobile: allModes["mobile"]
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
@ -19,8 +28,7 @@
|
||||
label: "Label",
|
||||
confidences: [
|
||||
{
|
||||
label:
|
||||
"Long space separated label text, long space separated label text, long space separated label text",
|
||||
label: "Long space separated label text, ".repeat(10),
|
||||
confidence: 0.8
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user