Skip to content

Commit

Permalink
restyle: right align edit buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
tbjolset committed Apr 24, 2024
1 parent 5d44788 commit 9dcf6eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ input:focus, textarea:focus, select:focus, button:focus {
width: 30em;
}

.grow {
flex-grow: 1;
}

.tip {
color: #ccc;
font-size: 0.9em;
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
></textarea>
<div x-show="sender" class="row field">
<span class="avatar" x-show="sender" :style="{ 'background-image': `url(${sender?.avatar})`}"></span>
<div x-text="sender?.displayName"></div>
<div x-text="sender?.displayName" class="grow"></div>
<button @click="sender = null">Edit</button>
</div>

Expand All @@ -85,7 +85,7 @@
x-show="receiver?.avatar"
:style="{ 'background-image': `url(${receiver?.avatar})`}"
></span>
<div x-text="receiver?.name"></div>
<div x-text="receiver?.name" class="grow"></div>
<button @click="receiver = null">Edit</button>
</div>
<div x-text="error || success" x-show="error || success" :class="error ? 'error' : 'success'"></div>
Expand Down

0 comments on commit 9dcf6eb

Please sign in to comment.