From 913e84730dfa108e409c6fe5f1016dfacc1b2f3e Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sat, 15 Apr 2023 22:17:05 +0200 Subject: [PATCH] Optimized video modal size --- public/piksi.css | 6 ++++++ public/piksi.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/public/piksi.css b/public/piksi.css index 9405a05..c73a197 100644 --- a/public/piksi.css +++ b/public/piksi.css @@ -38,3 +38,9 @@ a.discrete-link:focus { .embedded .hide-when-embedded { display: none; } + +@media (min-width: 768px) { + .modal-video { + max-width: 80%; + } +} diff --git a/public/piksi.js b/public/piksi.js index ceebf42..a4ecdf3 100644 --- a/public/piksi.js +++ b/public/piksi.js @@ -162,7 +162,7 @@ $(document).on("click", ".show-as-dialog-video", function(e) bootbox.dialog({ "message": dialogHtml, "size": "extra-large" - }).find(".modal-content").addClass("bg-secondary"); + }).find(".modal-dialog").addClass("modal-video").find(".modal-content").addClass("bg-secondary"); }); $(document).on("click", ".close-bootbox", function(e)