Skip to content

Commit f1b79e0

Browse files
committed
better add header
1 parent 5cf7a43 commit f1b79e0

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

src/components/Registry/SearchHeader.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ export const SearchHeader: React.FC<SearchHeaderProps> = ({
4747
className={styles.addProviderButton}
4848
title="Add new providers via GitHub Pull Request"
4949
>
50-
+
50+
<span className={styles.addIcon}>+</span>
51+
<span className={styles.addText}>Add Provider</span>
5152
<div className={styles.addProviderTooltip}>
5253
Add a new provider via GitHub Pull Request
5354
</div>

src/pages/registry.module.css

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,19 +189,20 @@
189189
display: inline-flex;
190190
align-items: center;
191191
justify-content: center;
192-
width: 48px;
193-
height: 48px;
192+
gap: 0.5rem;
193+
padding: 0.75rem 1rem;
194194
background-color: #8b5cf6;
195195
color: #ffffff;
196196
border: none;
197197
border-radius: 12px;
198-
font-size: 1.5rem;
198+
font-size: 0.875rem;
199199
font-weight: 600;
200200
cursor: pointer;
201201
transition: all 0.2s ease;
202202
text-decoration: none;
203203
position: relative;
204204
flex-shrink: 0;
205+
white-space: nowrap;
205206
}
206207

207208
.addProviderButton:hover {
@@ -215,6 +216,18 @@
215216
box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
216217
}
217218

219+
.addIcon {
220+
font-size: 1.2rem;
221+
font-weight: 700;
222+
line-height: 1;
223+
}
224+
225+
.addText {
226+
font-size: 0.875rem;
227+
font-weight: 600;
228+
line-height: 1;
229+
}
230+
218231
.addProviderTooltip {
219232
position: absolute;
220233
bottom: 120%;

0 commit comments

Comments
 (0)