From 53c72f729e00c499bd27dec6f5597fd643c65ec2 Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Thu, 8 Apr 2021 20:53:38 +0200 Subject: [PATCH] Fix spacing issues --- front/src/components/ui/dialog.ts | 4 ++++ front/templates/main.html | 8 ++++---- front/templates/picker/stop.html | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/front/src/components/ui/dialog.ts b/front/src/components/ui/dialog.ts index 365102d..f15f135 100644 --- a/front/src/components/ui/dialog.ts +++ b/front/src/components/ui/dialog.ts @@ -100,6 +100,10 @@ export default class UiDialog extends Vue { const isInWrapper = this.$parent.$options.name == 'portalTarget'; if (typeof this.reference === 'string') { + if (this.reference[0] === '#') { + return document.getElementById(this.reference.substr(1)); + } + if (this.refs) { return this.refs[this.reference]; } diff --git a/front/templates/main.html b/front/templates/main.html index 141a79c..ae6af29 100644 --- a/front/templates/main.html +++ b/front/templates/main.html @@ -7,7 +7,7 @@ Komunikaty {{ messages.count }} - - @@ -42,7 +42,7 @@ Odjazdy - - diff --git a/front/templates/picker/stop.html b/front/templates/picker/stop.html index 626dc17..21d1f2d 100644 --- a/front/templates/picker/stop.html +++ b/front/templates/picker/stop.html @@ -1,6 +1,6 @@
-
+