From d03844b48899a51a27b636806027745789a862ca Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Sun, 12 Jan 2025 14:04:57 -0800 Subject: [PATCH] feat: improves toasts for mobile (#3545) --- assets/components.d.ts | 1 + assets/components/common/ToastModal.vue | 28 +++++++++++++++++++++++++ assets/layouts/default.vue | 25 +--------------------- 3 files changed, 30 insertions(+), 24 deletions(-) create mode 100644 assets/components/common/ToastModal.vue diff --git a/assets/components.d.ts b/assets/components.d.ts index 949d1c5e3818..9e33180372b6 100644 --- a/assets/components.d.ts +++ b/assets/components.d.ts @@ -119,6 +119,7 @@ declare module 'vue' { SwarmMenu: typeof import('./components/SwarmMenu.vue')['default'] Tag: typeof import('./components/common/Tag.vue')['default'] TimedButton: typeof import('./components/common/TimedButton.vue')['default'] + ToastModal: typeof import('./components/common/ToastModal.vue')['default'] Toggle: typeof import('./components/common/Toggle.vue')['default'] ViewerWithSource: typeof import('./components/LogViewer/ViewerWithSource.vue')['default'] ZigZag: typeof import('./components/LogViewer/ZigZag.vue')['default'] diff --git a/assets/components/common/ToastModal.vue b/assets/components/common/ToastModal.vue new file mode 100644 index 000000000000..07198f120ca5 --- /dev/null +++ b/assets/components/common/ToastModal.vue @@ -0,0 +1,28 @@ + + diff --git a/assets/layouts/default.vue b/assets/layouts/default.vue index db174cc08bd5..ec4e1c9be8ca 100644 --- a/assets/layouts/default.vue +++ b/assets/layouts/default.vue @@ -52,29 +52,7 @@ -
-
- - - -
-

{{ toast.title }}

-
-
-
- -
-
-
+