Skip to content

Commit

Permalink
fix long word input
Browse files Browse the repository at this point in the history
  • Loading branch information
DanZalov committed Mar 11, 2024
1 parent dd65781 commit bbfb7c0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
8 changes: 1 addition & 7 deletions src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,12 @@ span.myinput {
cursor: pointer;
}

.icon-edit {
position: absolute;
transform: translateY(-50%);
top: 55%;
right: 10px;
}

.mybtn {
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
max-height: 38px;
}

.mybtn .mobile {
Expand Down
23 changes: 19 additions & 4 deletions src/views/TasksView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ function openForm(id: string) {
@close="form.show = false"
/>
<span v-else @click="openForm(task.id)" class="myinput">
{{ task.title }}
<div class="icon-edit">
<IconEdit :size="16" />
</div>
<span class="title"
>{{ task.title }}
<div class="icon-edit">
<IconEdit :size="16" />
</div>
</span>
</span>
<button
class="mybtn danger"
Expand All @@ -64,12 +66,25 @@ ul {
li {
display: flex;
margin-bottom: 10px;
align-items: center;
}
hr {
margin: 20px 0px;
}
.title {
word-break: break-word;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.icon-edit {
margin: 0px 5px;
}
@media (min-width: 768px) {
h1 {
padding-bottom: 0.5rem;
Expand Down

0 comments on commit bbfb7c0

Please sign in to comment.