Skip to content

Commit 85c76a7

Browse files
Ademola AdefioyeAdemola Adefioye
authored andcommitted
styling fix for the button
1 parent 1c35c2f commit 85c76a7

2 files changed

Lines changed: 1 addition & 30 deletions

File tree

static/css/metrics.css

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ body {
4747

4848
.search-bar {
4949
width: 100%;
50-
padding: 8px 32px 8px 32px;
50+
padding: 8px 8px 8px 32px;
5151
border: 1px solid #d1d5db;
5252
border-radius: 4px;
5353
font-size: 0.875rem;
@@ -58,26 +58,6 @@ body {
5858
box-shadow: 0 0 0 1px #3b82f6;
5959
}
6060

61-
.search-clear-btn {
62-
position: absolute;
63-
right: 8px;
64-
top: 50%;
65-
transform: translateY(-50%);
66-
background: none;
67-
border: none;
68-
color: #9ca3af;
69-
cursor: pointer;
70-
padding: 4px;
71-
display: flex;
72-
align-items: center;
73-
justify-content: center;
74-
border-radius: 50%;
75-
font-size: 0.75rem;
76-
}
77-
.search-clear-btn:hover {
78-
color: #374151;
79-
background-color: #f3f4f6;
80-
}
8161

8262
.actions-section {
8363
display: flex;

templates/metrics.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,6 @@
267267
value={filters[0] || ""}
268268
onChange={e => updateFilter(0, e.target.value)}
269269
/>
270-
{filters[0] && (
271-
<button
272-
className="search-clear-btn"
273-
onClick={() => updateFilter(0, "")}
274-
title="Clear search"
275-
>
276-
277-
</button>
278-
)}
279270
</div>
280271
</div>
281272
<div className="actions-section">

0 commit comments

Comments
 (0)