Skip to content

Commit 5dd4053

Browse files
CopilotBoshen
andcommitted
Make NPM Downloads list compact and centered for improved readability
Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
1 parent d1479e1 commit 5dd4053

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

apps/dashboard/src/App.css

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,13 @@
325325

326326
/* NPM Downloads List */
327327
.npm-downloads-list-container {
328-
margin-bottom: 2rem;
328+
margin: 0 auto 2rem auto;
329329
border-radius: 0.5rem;
330330
border: 1px solid #e2e8f0;
331331
background: white;
332332
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
333+
max-width: 500px;
334+
width: fit-content;
333335
}
334336

335337
.npm-downloads-list {
@@ -342,11 +344,12 @@
342344
display: flex;
343345
align-items: center;
344346
justify-content: space-between;
345-
padding: 0.75rem 1.25rem;
347+
padding: 0.5rem 1rem;
346348
border-bottom: 1px solid #e2e8f0;
347349
transition: all 0.2s ease;
348350
cursor: pointer;
349-
gap: 1rem;
351+
gap: 0.75rem;
352+
min-width: fit-content;
350353
}
351354

352355
.npm-download-item:hover {
@@ -365,14 +368,15 @@
365368

366369
.npm-download-item .package-name {
367370
font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
368-
font-size: 0.9rem;
371+
font-size: 0.875rem;
369372
font-weight: 500;
370373
color: #374151;
371374
background: #f1f5f9;
372-
padding: 0.375rem 0.75rem;
373-
border-radius: 0.375rem;
375+
padding: 0.25rem 0.5rem;
376+
border-radius: 0.25rem;
374377
border: 1px solid #cbd5e1;
375378
min-width: fit-content;
379+
white-space: nowrap;
376380
}
377381

378382
.npm-download-item .download-badge {

0 commit comments

Comments
 (0)