From 6285aec0d9e83ad2d21535ddac3185cdc8edff62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Sat, 22 May 2021 00:46:23 +0200 Subject: [PATCH] Fix: Play button center position --- dist/plex-meets-homeassistant.js | 3 ++- src/modules/style.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 8ac4d96..1ac5fa5 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -19548,9 +19548,10 @@ style.textContent = css ` cursor: pointer; transition: 0.2s; margin: 0 auto; + left: calc(50% - 20px); display: block; - position: relative; top: calc(50% - 20px); + position: absolute; } button[name='playButton']:hover { background: orange !important; diff --git a/src/modules/style.ts b/src/modules/style.ts index ad717fe..b505d00 100644 --- a/src/modules/style.ts +++ b/src/modules/style.ts @@ -288,9 +288,10 @@ style.textContent = css` cursor: pointer; transition: 0.2s; margin: 0 auto; + left: calc(50% - 20px); display: block; - position: relative; top: calc(50% - 20px); + position: absolute; } button[name='playButton']:hover { background: orange !important;