From 4fc55b6feed6b9a29c03b7324431a1dc2824b3e6 Mon Sep 17 00:00:00 2001 From: sfisher Date: Wed, 13 Nov 2024 15:07:45 -0800 Subject: [PATCH] The X button was not showing up at all in Chrome. This fixes that problem by adding to styles and re-compiling the SVG. --- dev/images/icon_cross.svg | 17 +++-------------- dev/scss/_login-modal.scss | 1 + static_src/images/icon_cross.svg | 22 +++------------------- static_src/stylesheets/main2.min.css | 4 +++- 4 files changed, 10 insertions(+), 34 deletions(-) mode change 100755 => 100644 dev/images/icon_cross.svg diff --git a/dev/images/icon_cross.svg b/dev/images/icon_cross.svg old mode 100755 new mode 100644 index ba2b3cc1f..a037959bd --- a/dev/images/icon_cross.svg +++ b/dev/images/icon_cross.svg @@ -1,14 +1,3 @@ - - - - - - - - + + + diff --git a/dev/scss/_login-modal.scss b/dev/scss/_login-modal.scss index 245e7808e..7c204d6b3 100644 --- a/dev/scss/_login-modal.scss +++ b/dev/scss/_login-modal.scss @@ -33,6 +33,7 @@ padding: 2px; background-color: $design-white-color; cursor: pointer; + object-fit: contain; // Or "cover" depending on the fit you need } .login-modal__form { diff --git a/static_src/images/icon_cross.svg b/static_src/images/icon_cross.svg index 6de30c8bb..a037959bd 100644 --- a/static_src/images/icon_cross.svg +++ b/static_src/images/icon_cross.svg @@ -1,19 +1,3 @@ - - - - - - - - - - + + + diff --git a/static_src/stylesheets/main2.min.css b/static_src/stylesheets/main2.min.css index 11c7a4c53..2d946b0ed 100644 --- a/static_src/stylesheets/main2.min.css +++ b/static_src/stylesheets/main2.min.css @@ -1521,7 +1521,9 @@ Selector pattern using above mixin: height: 15px; padding: 2px; background-color: white; - cursor: pointer; } + cursor: pointer; + -o-object-fit: contain; + object-fit: contain; } .login-modal__form { display: -webkit-box;