From 7a85c115dbcf561d648701f2d9ddb4628827adf6 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Tue, 26 Mar 2019 14:51:38 +0100 Subject: [PATCH] HFP-2693 Fix dialog size on resize --- styles/h5p.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/styles/h5p.css b/styles/h5p.css index 3b3e1fe..1f81839 100644 --- a/styles/h5p.css +++ b/styles/h5p.css @@ -306,10 +306,11 @@ div.h5p-fullscreen { .h5p-embed-dialog .h5p-inner, .h5p-reuse-dialog .h5p-inner, .h5p-content-user-data-reset-dialog .h5p-inner { - width: 316px; + min-width: 316px; + max-width: 400px; left: 50%; top: 50%; - margin: 0 0 0 -158px; + transform: translateX(-50%); } .h5p-embed-dialog .h5p-embed-code-container, .h5p-embed-size {