Commit 29b1bdd4fc6 for woocommerce
commit 29b1bdd4fc6a0536ec8cf29b93c253019edafe90
Author: Tung Du <dinhtungdu@gmail.com>
Date: Tue Oct 27 17:09:01 2026 +0700
Fix product lightbox toolbar alignment on small screens (#70112)
* fix: align product lightbox toolbar on small screens
Amp-Thread-ID: https://ampcode.com/threads/T-01a16124-d3a7-73c8-98ec-a239f327cb84
Co-authored-by: Amp <amp@ampcode.com>
* chore: add changelog for product lightbox alignment
Amp-Thread-ID: https://ampcode.com/threads/T-01a16124-d3a7-73c8-98ec-a239f327cb84
Co-authored-by: Amp <amp@ampcode.com>
---------
Co-authored-by: Amp <amp@ampcode.com>
diff --git a/plugins/woocommerce/changelog/fix-69359-photoswipe-toolbar b/plugins/woocommerce/changelog/fix-69359-photoswipe-toolbar
new file mode 100644
index 00000000000..6a475d79495
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-69359-photoswipe-toolbar
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Remove the empty space beside the product image lightbox close button on phones and tablets.
diff --git a/plugins/woocommerce/client/legacy/css/photoswipe/default-skin/default-skin.css b/plugins/woocommerce/client/legacy/css/photoswipe/default-skin/default-skin.css
index e23c7ebbc9c..c11474ba938 100755
--- a/plugins/woocommerce/client/legacy/css/photoswipe/default-skin/default-skin.css
+++ b/plugins/woocommerce/client/legacy/css/photoswipe/default-skin/default-skin.css
@@ -363,14 +363,6 @@ a.pswp__share--download:hover {
background: none;
margin: 0; }
-@media screen and (max-width: 1024px) {
- .pswp__preloader {
- position: relative;
- left: auto;
- top: auto;
- margin: 0;
- float: right; } }
-
@-webkit-keyframes clockwise {
0% {
-webkit-transform: rotate(0deg);