From e2e4847eea2ee490d433c1fd5c857b94b2d4342b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Sat, 4 Nov 2023 04:33:54 +0000 Subject: [PATCH 1/8] wip: works, but style really broken --- ui/src/components/calendar/SVGRect.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/src/components/calendar/SVGRect.vue b/ui/src/components/calendar/SVGRect.vue index 2c410f4..2d0df6b 100644 --- a/ui/src/components/calendar/SVGRect.vue +++ b/ui/src/components/calendar/SVGRect.vue @@ -1,29 +1,29 @@ diff --git a/ui/src/components/calendar/SVGRect.vue b/ui/src/components/calendar/SVGRect.vue index 5d3abfb..e2bbd99 100644 --- a/ui/src/components/calendar/SVGRect.vue +++ b/ui/src/components/calendar/SVGRect.vue @@ -7,23 +7,14 @@ :height="rectangle.height" :style="`transform: scaleX(${1 / store.calendar_aspect_ratio})`" > -
- diff --git a/ui/src/components/editor/DoorCanvas.vue b/ui/src/components/editor/DoorCanvas.vue index e752dda..9d3c41d 100644 --- a/ui/src/components/editor/DoorCanvas.vue +++ b/ui/src/components/editor/DoorCanvas.vue @@ -13,12 +13,13 @@ :key="`door-${index}`" :door="door" style="cursor: inherit" - visible + force_visible /> diff --git a/ui/src/components/editor/PreviewDoor.vue b/ui/src/components/editor/PreviewDoor.vue index c313db2..9fb0cd8 100644 --- a/ui/src/components/editor/PreviewDoor.vue +++ b/ui/src/components/editor/PreviewDoor.vue @@ -4,6 +4,7 @@ :rectangle="door.position" :variant="editing ? 'success' : 'primary'" @click.left="on_click" + visible > Date: Mon, 6 Nov 2023 00:32:56 +0000 Subject: [PATCH 3/8] SVGRect style optimization --- ui/src/components/calendar/SVGRect.vue | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/ui/src/components/calendar/SVGRect.vue b/ui/src/components/calendar/SVGRect.vue index 3f28865..ccadc0a 100644 --- a/ui/src/components/calendar/SVGRect.vue +++ b/ui/src/components/calendar/SVGRect.vue @@ -60,33 +60,22 @@ export default class extends Vue { From 8cd4e922ffe8bb49ce612477c063342158adfb65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Mon, 6 Nov 2023 00:37:03 +0000 Subject: [PATCH 4/8] unneeded ref in SVGRect --- ui/src/components/calendar/SVGRect.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/src/components/calendar/SVGRect.vue b/ui/src/components/calendar/SVGRect.vue index ccadc0a..81a600e 100644 --- a/ui/src/components/calendar/SVGRect.vue +++ b/ui/src/components/calendar/SVGRect.vue @@ -1,6 +1,5 @@