Skip to content

Commit f5b0446

Browse files
authored
fix(ui): eliminate copy button icon misaligned in Firefox (#7542)
Closes #7481
1 parent f1ad60d commit f5b0446

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/style/_buttons.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ button
171171
.copy-to-clipboard
172172
{
173173
position: absolute;
174+
display: flex;
175+
justify-content: center;
176+
align-items: center;
174177
bottom: 10px;
175178
right: 100px;
176179
width: 30px;
@@ -181,10 +184,11 @@ button
181184

182185
button
183186
{
184-
padding-left: 25px;
187+
flex-grow: 1;
188+
flex-shrink: 1;
185189
border: none;
186190
height: 25px;
187-
background: url("data:image/svg+xml, <svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' aria-hidden='true'><path fill='#ffffff' fill-rule='evenodd' d='M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z'></path></svg>") center center no-repeat;
191+
background: url("data:image/svg+xml, <svg xmlns='http://www.w3.org/2000/svg' width='16' height='15' aria-hidden='true'><g transform='translate(2, -1)'><path fill='#ffffff' fill-rule='evenodd' d='M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z'></path></g></svg>") center center no-repeat;
188192
}
189193
}
190194

@@ -195,9 +199,9 @@ button
195199
right: 10px;
196200
width: 20px;
197201
height: 20px;
202+
198203
button
199204
{
200-
padding-left: 18px;
201-
height: 18px
205+
height: 18px;
202206
}
203207
}

src/style/_layout.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,9 @@
717717
color: white;
718718
font-size: 14px;
719719
height: 30px;
720+
justify-content: center;
721+
align-items: center;
722+
display: flex;
720723
}
721724

722725
.scheme-container

0 commit comments

Comments
 (0)