From 1b20085a3bdd4f72ccea1f3a6fd1e9ebe06fea00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lev=20Z=20Kir=C3=A1ly?= Date: Sun, 1 Oct 2023 22:24:07 +0200 Subject: [PATCH 1/8] Add windowMargin #45 --- components/WindowManager.vue | 7 ++----- store/wm.ts | 11 ++++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/components/WindowManager.vue b/components/WindowManager.vue index 7fbed45..40381a5 100644 --- a/components/WindowManager.vue +++ b/components/WindowManager.vue @@ -37,8 +37,6 @@ return false } - console.log(newWindow) - let windowClasses = [ 'wb-vicav', 'no-min', 'no-max', 'no-full', 'no-resize', 'no-move'] if (!!newWindow.params?.customClass) { windowClasses.push(newWindow.params.customClass) @@ -70,8 +68,7 @@ } function RegisterClientSize() { - // warning: WMStore.topMargin must already be set by the MenuBar component's onmounted event handler - WMStore.RegisterClientSize(document.documentElement.clientWidth, document.documentElement.clientHeight - WMStore.topMargin) + WMStore.RegisterClientSize(document.documentElement.clientWidth, document.documentElement.clientHeight) } const getDBSnippet = (params: string): void => { @@ -129,13 +126,13 @@ :params="window.params" /> - diff --git a/components/DictQuery.vue b/components/DictQuery.vue index 9fc05f5..4eed9a8 100644 --- a/components/DictQuery.vue +++ b/components/DictQuery.vue @@ -107,6 +107,10 @@ diff --git a/components/WindowManager.vue b/components/WindowManager.vue index 60c3b63..45f3991 100644 --- a/components/WindowManager.vue +++ b/components/WindowManager.vue @@ -146,7 +146,7 @@ .wb-vicav .wb-body { top: 25px; margin: 0; - padding: 20px; + /* padding: */ /* each content type should set the padding itself; standard is 20px */ background-color: #fff; } From 4c245ffbcf3ad50a0b77462c5ffb0696102398e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lev=20Z=20Kir=C3=A1ly?= Date: Mon, 2 Oct 2023 16:06:30 +0200 Subject: [PATCH 5/8] Sanitize links in Text windows (WIP) #45 --- components/Text.vue | 23 ++++++++++++++++++++++- components/WindowManager.vue | 35 ----------------------------------- 2 files changed, 22 insertions(+), 36 deletions(-) diff --git a/components/Text.vue b/components/Text.vue index d835ca7..90badde 100644 --- a/components/Text.vue +++ b/components/Text.vue @@ -1,5 +1,5 @@