Skip to content

Commit 4d22c2e

Browse files
committed
better ux
1 parent 2f7d645 commit 4d22c2e

2 files changed

Lines changed: 28 additions & 14 deletions

File tree

assets/styles.css

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
3939
--font-mono: ui-monospace, "SF Mono", Consolas, monospace;
4040

41-
--text-xs: 0.75rem;
42-
--text-sm: 0.8125rem;
43-
--text-base: 0.875rem;
44-
--text-lg: 1rem;
45-
--text-xl: 1.125rem;
41+
--text-xs: 0.875rem;
42+
--text-sm: 0.9375rem;
43+
--text-base: 1rem;
44+
--text-lg: 1.125rem;
45+
--text-xl: 1.25rem;
4646

4747
--leading-tight: 1.25;
4848
--leading-normal: 1.5;
@@ -598,19 +598,19 @@ a {
598598
background: rgba(255, 255, 255, 0.98);
599599
backdrop-filter: blur(10px);
600600
-webkit-backdrop-filter: blur(10px);
601-
border: 1px solid rgba(226, 232, 240, 0.8);
601+
border: 1px solid rgba(203, 213, 225, 1);
602602
border-radius: var(--radius-md);
603603
padding: var(--space-3);
604604
transition: all var(--transition);
605605
position: relative;
606606
border-left: 3px solid transparent;
607-
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
607+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
608608
}
609609

610610
.pr-card:hover {
611611
background: rgba(255, 255, 255, 1);
612-
border-color: rgba(226, 232, 240, 1);
613-
box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
612+
border-color: rgba(186, 199, 213, 1);
613+
box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.12);
614614
transform: translateX(2px);
615615
}
616616

@@ -681,7 +681,7 @@ a {
681681
}
682682

683683
.pr-title {
684-
font-size: var(--text-base);
684+
font-size: var(--text-lg);
685685
font-weight: 500;
686686
line-height: var(--leading-tight);
687687
color: var(--color-text);
@@ -889,7 +889,7 @@ a {
889889
display: flex;
890890
align-items: center;
891891
justify-content: space-between;
892-
font-size: var(--text-xs);
892+
font-size: var(--text-sm);
893893
color: var(--color-text-secondary);
894894
gap: var(--space-3);
895895
}
@@ -902,8 +902,8 @@ a {
902902
}
903903

904904
.author-avatar {
905-
width: 1rem;
906-
height: 1rem;
905+
width: 1.25rem;
906+
height: 1.25rem;
907907
border-radius: var(--radius-full);
908908
}
909909

@@ -1328,6 +1328,15 @@ a {
13281328

13291329
/* Responsive */
13301330
@media (max-width: 768px) {
1331+
/* Slightly reduce font sizes on mobile for better fit */
1332+
:root {
1333+
--text-xs: 0.8125rem;
1334+
--text-sm: 0.875rem;
1335+
--text-base: 0.9375rem;
1336+
--text-lg: 1rem;
1337+
--text-xl: 1.125rem;
1338+
}
1339+
13311340
.header-content {
13321341
flex-wrap: wrap;
13331342
height: auto;
@@ -1357,6 +1366,11 @@ a {
13571366
align-self: flex-start;
13581367
}
13591368

1369+
.author-avatar {
1370+
width: 1rem;
1371+
height: 1rem;
1372+
}
1373+
13601374
.toast {
13611375
left: var(--space-4);
13621376
right: var(--space-4);

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ <h1 class="stats-title">Pull Request Statistics</h1>
245245
</main>
246246

247247
<footer class="dashboard-footer">
248-
<span>Want real-time notifications on your desktop? Try the <a href="https://github.com/ready-to-review/pr-menubar" target="_blank" rel="noopener" style="color: #0969da; text-decoration: underline; font-weight: 500;">Ready to Review.app</a></span>
248+
<span>Want real-time notifications on your desktop? Try the new <a href="https://github.com/ready-to-review/pr-menubar" target="_blank" rel="noopener" style="color: #0969da; text-decoration: underline; font-weight: 500;">Ready to Review.app</a> <span style="background: #f3f4f6; color: #475569; padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 500; vertical-align: middle;">(beta)</span></span>
249249
</footer>
250250
</div>
251251

0 commit comments

Comments
 (0)