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 Jun 21, 2022
1 parent 99b2158 commit c58dc1c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/Task.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,12 @@ Archived.args = {
state: "TASK_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 = Template.bind({});
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 @@ -22,6 +22,7 @@
:id="'title-' + task.id"
name="title"
placeholder="Input title"
style="text-overflow: ellipsis"
/>
</label>
<button
Expand Down

0 comments on commit c58dc1c

Please sign in to comment.