diff --git a/frontend/src/components/falukant/MessagesDialog.vue b/frontend/src/components/falukant/MessagesDialog.vue index 52b1b24..36ecd11 100644 --- a/frontend/src/components/falukant/MessagesDialog.vue +++ b/frontend/src/components/falukant/MessagesDialog.vue @@ -5,45 +5,69 @@ :title="'falukant.messages.title'" :isTitleTranslated="true" icon="falukant/messages24.png" - :buttons="[ - { text: 'falukant.messages.markAllRead', action: 'markAll' }, - { text: 'message.close', action: 'close' } - ]" + :buttons="dialogButtons" width="520px" height="420px" > - + @@ -585,21 +794,62 @@ export default { padding: 0; margin: 0; } -.messages > li { border: 1px solid #7BBE55; margin-bottom: .25em; padding: .5em; } -.messages > li.unread { font-weight: bold; } -.messages > li .body { display: flex; flex-direction: column; gap: 0.25em; } -.messages > li .notification-title { font-weight: bold; font-size: 1.05em; } -.messages > li .notification-description { color: #555; } -.messages > li .footer { color: #f9a22c; font-size: .8em; margin-top: .3em; display: flex; } -.messages > li .footer span:first-child { flex: 1; } -.empty { text-align: center; color: #777; padding: 1em; } + +.messages > li { + border: 1px solid #7BBE55; + margin-bottom: 0.25em; + padding: 0.5em; +} + +.messages > li.unread { + font-weight: bold; +} + +.messages > li .body { + display: flex; + flex-direction: column; + gap: 0.25em; +} + +.messages > li .notification-title { + font-weight: bold; + font-size: 1.05em; +} + +.messages > li .notification-description { + color: #555; +} + +.messages > li .footer { + color: #f9a22c; + font-size: 0.8em; + margin-top: 0.3em; + display: flex; +} + +.messages > li .footer span:first-child { + flex: 1; +} + +.empty { + text-align: center; + color: #777; + padding: 1em; +} + .pagination { display: flex; justify-content: center; - gap: .5em; - margin-top: .5em; + gap: 0.5em; + margin-top: 0.5em; } -.pagination button { padding: .25em .6em; } -.pagination input[type="number"] { width: 4em; text-align: right; } - +.pagination button { + padding: 0.25em 0.6em; +} + +.pagination input[type="number"] { + width: 4em; + text-align: right; +} +