From dea993347f05bc18f9e809607032b9ebf7f0b333 Mon Sep 17 00:00:00 2001 From: MIHIR2006 Date: Sat, 3 Jan 2026 01:20:24 +0530 Subject: [PATCH 1/2] Fix #345: Wrap fullscreen.css in @media screen to fix print layout --- .../static/plone-fullscreen/fullscreen.css | 68 ++++++++++--------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/src/plone/staticresources/static/plone-fullscreen/fullscreen.css b/src/plone/staticresources/static/plone-fullscreen/fullscreen.css index f51629229..989701597 100644 --- a/src/plone/staticresources/static/plone-fullscreen/fullscreen.css +++ b/src/plone/staticresources/static/plone-fullscreen/fullscreen.css @@ -1,34 +1,36 @@ -.zoomable{ - cursor: pointer; -} -.zoomable:fullscreen { - width: 100%; - display: grid; - grid-template-rows: auto; -} -.zoomable:fullscreen img { - margin: 0; - position: fixed; - top: 0; - width: 100%; - height: 100%; - min-width: 0; - max-width: none; - min-height: 0; - max-height: none; - box-sizing: border-box; - object-fit: contain; - transform: none; -} -.zoomable:fullscreen figcaption{ - color: white; - width: 100%; - display: block; - position: fixed; - bottom: 0; - padding: 0.5em max(50% - 380px, 1em); - font-size: 1.2em; - text-align: center; - background-color: rgba(0, 0, 0, 0.377); -} +@media screen { + .zoomable{ + cursor: pointer; + } + .zoomable:fullscreen { + width: 100%; + display: grid; + grid-template-rows: auto; + } + .zoomable:fullscreen img { + margin: 0; + position: fixed; + top: 0; + width: 100%; + height: 100%; + min-width: 0; + max-width: none; + min-height: 0; + max-height: none; + box-sizing: border-box; + object-fit: contain; + transform: none; + } + .zoomable:fullscreen figcaption{ + color: white; + width: 100%; + display: block; + position: fixed; + bottom: 0; + padding: 0.5em max(50% - 380px, 1em); + font-size: 1.2em; + text-align: center; + background-color: rgba(0, 0, 0, 0.377); + } +} \ No newline at end of file From c9907e09db745021afb90e78387c4d088cd41df3 Mon Sep 17 00:00:00 2001 From: MIHIR2006 Date: Sat, 3 Jan 2026 13:59:28 +0530 Subject: [PATCH 2/2] Add changelog entry --- news/345.bugfix | Bin 0 -> 118 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 news/345.bugfix diff --git a/news/345.bugfix b/news/345.bugfix new file mode 100644 index 0000000000000000000000000000000000000000..51a1bd1156df9c06e2a3595e11f153b37af5edb4 GIT binary patch literal 118 zcmYj}%L#xm5JcZuu!pU{8tlSz@B@JugGoS}S4U4Whn+XOJNGrP<470_l^|tCWwR9N l