diff --git a/assets/components/header/notifications.vue b/assets/components/header/notifications.vue index f0363a02..85ff5619 100644 --- a/assets/components/header/notifications.vue +++ b/assets/components/header/notifications.vue @@ -213,21 +213,19 @@ export default { .notification-body { flex-grow: 1; padding: .4rem 1rem .25rem .5rem; + overflow: hidden; } .notification-row { display: flex; align-items: center; + overflow: hidden; &:not(:last-child) { margin: 0 0 .1rem 0; } } -.notification-tidbit { - font-weight: bold; -} - .notification-favicon { width: 1rem; height: 1rem; @@ -240,8 +238,14 @@ export default { overflow: hidden; } +.notification-tags { + white-space: nowrap; +} + .notification-actor, .notification-tag { + white-space: nowrap; + &:not(:last-child)::after { content: ','; padding: 0 .1rem 0 0; diff --git a/assets/components/releases/banner.vue b/assets/components/releases/banner.vue index 92e8a322..6e660f55 100644 --- a/assets/components/releases/banner.vue +++ b/assets/components/releases/banner.vue @@ -17,7 +17,6 @@ @pause="playing = false; paused = true;" /> - - - + /> diff --git a/src/alerts.js b/src/alerts.js index b1041519..00cf2a96 100644 --- a/src/alerts.js +++ b/src/alerts.js @@ -49,7 +49,7 @@ async function removeAlert(alertId) { await knex('alerts').where('id', alertId).delete(); } -async function notify(scenes, sessionUser) { +async function notify(scenes) { const releases = await knex.raw(` SELECT alerts.id as alert_id, alerts.notify, alerts.email, releases.id as scene_id, users.id as user_id FROM releases @@ -94,7 +94,6 @@ async function notify(scenes, sessionUser) { GROUP BY releases.id, users.id, alerts.id; `, { sceneIds: scenes.map(scene => scene.id), - userId: sessionUser.id, }); const notifications = releases.rows.filter(alert => alert.notify); @@ -110,8 +109,6 @@ async function notify(scenes, sessionUser) { } async function updateNotification(notificationId, notification, sessionUser) { - console.log(notification, sessionUser.id); - await knex('notifications') .where('user_id', sessionUser.id) .where('id', notificationId)