From b010cbb35d1873a32bcce7d42a85bf9017b2a221 Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Tue, 30 Jan 2024 10:42:12 +0100 Subject: [PATCH] FhcAlert: CSS --- public/css/Fhc.css | 17 ++++++++++++++++- public/js/plugin/FhcAlert.js | 6 +++--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/public/css/Fhc.css b/public/css/Fhc.css index 9342be5a3..7a209b661 100644 --- a/public/css/Fhc.css +++ b/public/css/Fhc.css @@ -1,6 +1,21 @@ -.text-prewrap { +.fhc-alert.p-toast-center { + width: 35rem; + max-width: 100vw; +} +.fhc-alert.p-toast-top-right { + max-width: calc(100vw - 40px); +} +.fhc-alert.p-toast-top-right .p-toast-detail, +.fhc-alert.p-toast-center .p-toast-message-text .card { + white-space: pre-wrap; +} + +.text-preline { white-space: pre-line; } +.text-prewrap { + white-space: pre-wrap; +} .btn-p-0 { padding: 0 .375rem; diff --git a/public/js/plugin/FhcAlert.js b/public/js/plugin/FhcAlert.js index 079039aed..cb9c4c4e8 100644 --- a/public/js/plugin/FhcAlert.js +++ b/public/js/plugin/FhcAlert.js @@ -133,8 +133,8 @@ const helperApp = Vue.createApp({ helperAppContainer.parentElement.removeChild(helperAppContainer); }, template: ` - - + +