From 5a11eeea312d65dbb937d632f96158c3c502ecb3 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 20 Jan 2018 19:30:08 -0800 Subject: [PATCH] add workaround for Edge dialog bug --- routes/_components/VideoDialog.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routes/_components/VideoDialog.html b/routes/_components/VideoDialog.html index 644ab33e..b6cca433 100644 --- a/routes/_components/VideoDialog.html +++ b/routes/_components/VideoDialog.html @@ -58,6 +58,10 @@ export default { oncreate() { + // TODO: this hack is for Edge 16, which makes the modal too wide + if (typeof setImmediate === 'function' && navigator.userAgent.match(/Edge/)) { + this.get('dialog').style.width = `${this.get('width')}px` + } this.registration = this.register() }, methods: {