From f5b0446992b71975ec6cab0713529bcd4fa4bfbc Mon Sep 17 00:00:00 2001
From: GhBogdan97 <36417662+GhBogdan97@users.noreply.github.com>
Date: Tue, 19 Oct 2021 20:54:43 +0300
Subject: [PATCH] fix(ui): eliminate copy button icon misaligned in Firefox
(#7542)
Closes #7481
---
src/style/_buttons.scss | 12 ++++++++----
src/style/_layout.scss | 3 +++
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/style/_buttons.scss b/src/style/_buttons.scss
index 989ba22d..fe8cf44f 100644
--- a/src/style/_buttons.scss
+++ b/src/style/_buttons.scss
@@ -171,6 +171,9 @@ button
.copy-to-clipboard
{
position: absolute;
+ display: flex;
+ justify-content: center;
+ align-items: center;
bottom: 10px;
right: 100px;
width: 30px;
@@ -181,10 +184,11 @@ button
button
{
- padding-left: 25px;
+ flex-grow: 1;
+ flex-shrink: 1;
border: none;
height: 25px;
- background: url("data:image/svg+xml, ") center center no-repeat;
+ background: url("data:image/svg+xml, ") center center no-repeat;
}
}
@@ -195,9 +199,9 @@ button
right: 10px;
width: 20px;
height: 20px;
+
button
{
- padding-left: 18px;
- height: 18px
+ height: 18px;
}
}
diff --git a/src/style/_layout.scss b/src/style/_layout.scss
index b14b680b..ed655b16 100644
--- a/src/style/_layout.scss
+++ b/src/style/_layout.scss
@@ -717,6 +717,9 @@
color: white;
font-size: 14px;
height: 30px;
+ justify-content: center;
+ align-items: center;
+ display: flex;
}
.scheme-container