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 Nov 2, 2023
1 parent a7c79ed commit b9761e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/Task.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,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,
},
},
};
1 change: 1 addition & 0 deletions src/components/Task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
:id="'title-' + task.id"
name="title"
placeholder="Input title"
style="text-overflow: ellipsis"
/>
</label>
<button
Expand Down

0 comments on commit b9761e7

Please sign in to comment.