Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fix: spacing & word wrap of alerts (#1841)
Browse files Browse the repository at this point in the history
* fix: add .break-words to add line breaks middle of the message if needed

* fix: add space between the message and the close button

* chore: move css class
  • Loading branch information
brenopolanski authored Mar 17, 2020
1 parent 5353b7b commit b98bb1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/renderer/components/AlertMessage/AlertMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
>
<div class="text-left message font-bold">
<ButtonClose
class="dismiss float-right p-10px cursor-pointer select-none"
icon-class="text-white"
@click="showNext"
/>
<span class="mr-4">
<span class="break-words">
{{ alert ? alert.message : '&nbsp;' }}
</span>
</div>
Expand Down Expand Up @@ -94,4 +93,7 @@ export default {
@apply bg-theme-warn text-theme-warn-text;
box-shadow: 0px 0px 15px var(--theme-warn-shadow);
}
.AlertMessage .ButtonClose {
@apply float-right cursor-pointer select-none ml-4;
}
</style>

0 comments on commit b98bb1c

Please sign in to comment.