mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 04:42:58 -05:00
[web] Fix notification block for long messages
When long messages have to be displayed, their text no longer goes beyond the frame.
This commit is contained in:
@@ -1,18 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<section v-if="notifications.length > 0" class="fd-notifications">
|
<section v-if="notifications.length > 0" class="notifications">
|
||||||
<div class="columns is-centered">
|
<div class="columns is-centered">
|
||||||
<div class="column is-half">
|
<div class="column is-half">
|
||||||
<div
|
<div
|
||||||
v-for="notification in notifications"
|
v-for="notification in notifications"
|
||||||
:key="notification.id"
|
:key="notification.id"
|
||||||
class="notification"
|
class="notification"
|
||||||
:class="[
|
:class="notification.type ? `is-${notification.type}` : ''"
|
||||||
'notification',
|
|
||||||
notification.type ? `is-${notification.type}` : ''
|
|
||||||
]"
|
|
||||||
>
|
>
|
||||||
<button class="delete" @click="remove(notification)" />
|
<button class="delete" @click="remove(notification)" />
|
||||||
<span v-text="notification.text" />
|
<div class="text" v-text="notification.text" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -24,11 +21,6 @@ import * as types from '@/store/mutation_types'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'NotificationList',
|
name: 'NotificationList',
|
||||||
components: {},
|
|
||||||
|
|
||||||
data() {
|
|
||||||
return { showNav: false }
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
notifications() {
|
notifications() {
|
||||||
@@ -44,19 +36,21 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style scoped>
|
||||||
.fd-notifications {
|
.notifications {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 60px;
|
bottom: 4rem;
|
||||||
z-index: 20000;
|
z-index: 20000;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.fd-notifications .notification {
|
.notifications .notification {
|
||||||
margin-bottom: 10px;
|
|
||||||
margin-left: 24px;
|
|
||||||
margin-right: 24px;
|
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 4px 8px 0 rgba(0, 0, 0, 0.2),
|
0 4px 8px 0 rgba(0, 0, 0, 0.2),
|
||||||
0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||||
}
|
}
|
||||||
|
.notification .text {
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
max-height: 6rem;
|
||||||
|
overflow: scroll;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user