Skip to content

Commit

Permalink
Add and integrate controls story
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniebigodes committed May 3, 2023
1 parent 5cc3b2c commit 40befd8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Task.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default function Task({
readOnly={true}
name="title"
placeholder="Input title"
style={{ textOverflow: "ellipsis" }}
/>
</label>

Expand Down
11 changes: 11 additions & 0 deletions src/components/Task.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,14 @@ export const Archived = {
},
},
};

const longTitleString = `This task's name is absurdly large. In fact, I think if I keep going I might end up with content overflow. What will happen? The star that represents a pinned task could have text overlapping. The text could cut-off abruptly when it reaches the star. I hope not!`;

export const LongTitle = {
args: {
task: {
...Default.args.task,
title: longTitleString,
},
},
};

0 comments on commit 40befd8

Please sign in to comment.