adjusted scrollbar for dag in all possible modes

removed pages
This commit is contained in:
ari committed 2022-01-14 11:31:55 -05:00
1 parent 3f74c10cbf
commit 28fbdf1698
26 files changed
+92 -155

No files matched your search

@@ -1,6 +1,6 @@
import { ComponentMeta, ComponentStory } from "@storybook/react";
import { useState } from "react";
import { usePageTheme } from "styles/page";
import InputTextBubble, { InputEntity } from "./InputTextBubble";
export default {
@@ -16,9 +16,9 @@ export default {
export const ArrayText: ComponentStory<typeof InputTextBubble> = args => {
const { classes } = usePageTheme({});
const [value, setValue] = useState<string | string[]>(['wow', 'lots of bubbles', 'itchen', 'bathroom'])
return <div className={classes.page}>
return <div className="page">
<div style={{ maxWidth: '200px', overflow: 'hidden' }}>
<InputTextBubble {...args} value={value} onChange={setValue} />
</div>
@@ -26,18 +26,18 @@ export const ArrayText: ComponentStory<typeof InputTextBubble> = args => {
}
export const JustText: ComponentStory<typeof InputTextBubble> = args => {
const { classes } = usePageTheme({});
const [value, setValue] = useState<string | string[]>('hello')
return <div className={classes.page}>
return <div className="page">
<InputTextBubble {...args} value={value} onChange={setValue} />
</div>
}
export const EntityId: ComponentStory<typeof InputTextBubble> = args => {
const { classes } = usePageTheme({});
const [value, setValue] = useState<string | string[]>(['sensor.bathroom'])
return <div className={classes.page}>
return <div className="page">
<InputEntity value={value} onChange={setValue} />
</div>
}