Skip to content

Commit

Permalink
fix: fix overflow wrap in notifications entries
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <meteyou@gmail.com>
  • Loading branch information
meteyou committed Mar 16, 2024
1 parent 3247892 commit dad79c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/notifications/NotificationMenuEntry.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<v-alert :class="`notification-menu-entry--priority-${entry.priority}`" text :color="alertColor" border="left">
<v-row align="start">
<v-row align="start" class="flex-nowrap">
<v-col class="grow">
<div class="notification-menu-entry__headline mb-1 text-subtitle-1">
<template v-if="'url' in entry">
<a :class="`text-decoration-none ${alertColor}--text`" :href="entry.url" target="_blank">
<a :class="`text-decoration-none ${alertColor}--text `" :href="entry.url" target="_blank">
<v-icon small :class="`${alertColor}--text pb-1`">
{{ mdiLinkVariant }}
</v-icon>
Expand All @@ -28,7 +28,7 @@
<v-btn v-else icon plain :color="alertColor" class="mb-2" @click="dismiss('reboot', null)">
<v-icon>{{ mdiClose }}</v-icon>
</v-btn>
<v-spacer></v-spacer>
<v-spacer />
<v-btn
v-if="showRepeatReminderButton"
icon
Expand Down Expand Up @@ -179,10 +179,12 @@ export default class NotificationMenuEntry extends Mixins(BaseMixin) {
<style scoped>
.notification-menu-entry__headline {
line-height: 1.2;
overflow-wrap: anywhere;
}
.notification-menu-entry__description {
max-width: 292px;
overflow-wrap: anywhere;
}
.notification-menu-entry--priority-critical .notification-menu-entry__description {
Expand Down

0 comments on commit dad79c0

Please sign in to comment.