Skip to content

Commit c181ab2

Browse files
committed
frontend: make copy component responsive and simplify styles
The copy component should grow to improve accessibility. Also removed utility classes in favor of already exsting container class.
1 parent b38828f commit c181ab2

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

frontends/web/src/components/copy/Copy.module.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,20 @@
66
cursor: pointer;
77
display: flex;
88
flex-direction: row;
9-
height: 18px;
9+
height: var(--size-default);
1010
justify-content: center;
1111
margin-top: var(--spacing-half);
12-
min-width: 18px !important;
12+
max-width: var(--size-default);
1313
padding: 0;
1414
position: absolute;
1515
right: var(--spacing-default);
1616
top: 10px;
1717
transition: background-color ease 0.2s;
18-
width: 18px;
1918
will-change: background-color;
2019
}
2120

2221
.button img {
23-
width: 18px;
22+
height: var(--size-default);
2423
}
2524

2625
.button:focus {
@@ -36,6 +35,10 @@
3635
}
3736

3837
.container {
38+
align-items: flex-start;
39+
display: flex;
40+
flex-direction: row;
41+
justify-content: flex-start;
3942
position: relative;
4043
}
4144

frontends/web/src/components/copy/Copy.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export const CopyableInput = ({
8989

9090
return (
9191
<div className={[
92-
'flex flex-row flex-start flex-items-start',
9392
style.container,
9493
className ? className : ''
9594
].join(' ')}>

frontends/web/src/style/layout.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
.flex-end { justify-content: flex-end; }
99
.flex-items-center { align-items: center; }
1010
.flex-items-baseline { align-items: baseline; }
11-
.flex-items-start { align-items: flex-start; }
1211
.flex-items-end { align-items: flex-end; }
1312
.flex-items-stretch { align-items: stretch; }
1413
.flex-wrap { flex-wrap: wrap; }

0 commit comments

Comments
 (0)