Skip to content

Commit 13da85f

Browse files
committed
Add and integrate controls story
1 parent 4b1cd77 commit 13da85f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/components/Task.stories.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,14 @@ export const Archived = {
4646
},
4747
},
4848
};
49+
50+
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!`;
51+
52+
export const LongTitle = {
53+
args: {
54+
task: {
55+
...Default.args.task,
56+
title: longTitleString,
57+
},
58+
},
59+
};

src/components/Task.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
:id="'title-' + task.id"
1919
name="title"
2020
placeholder="Input title"
21+
style="text-overflow: ellipsis"
2122
/>
2223
</label>
2324
<button

0 commit comments

Comments
 (0)