Skip to content

Commit 81c5a7c

Browse files
Adez017sanjay-kv
andcommitted
Fix dashboard text alginement
Co-Authored-By: Sanjay Viswanathan <[email protected]>
1 parent 44e724d commit 81c5a7c

File tree

3 files changed

+53
-55
lines changed

3 files changed

+53
-55
lines changed

src/components/dashboard/LeaderBoard/leaderboard.css

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@
259259
font-size: 2rem;
260260
font-weight: 800;
261261
margin-bottom: 4px;
262+
text-align: center;
262263
}
263264

264265
.light .stat-value {
@@ -276,7 +277,7 @@
276277
}
277278

278279
.light .stat-label {
279-
color: #666;
280+
color: #000000 !important;
280281
}
281282

282283
.dark .stat-label {
@@ -347,10 +348,12 @@
347348
border-color: #6366f1;
348349
box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
349350
}
351+
350352
70% {
351353
border-color: #6366f1;
352354
box-shadow: 0 0 0 6px rgba(99, 102, 241, 0);
353355
}
356+
354357
100% {
355358
border-color: inherit;
356359
}
@@ -387,11 +390,9 @@
387390
font-weight: 600;
388391
letter-spacing: 0.3px;
389392
appearance: none;
390-
background: linear-gradient(
391-
to bottom,
392-
rgba(255, 255, 255, 0.05) 0%,
393-
rgba(0, 0, 0, 0.05) 100%
394-
);
393+
background: linear-gradient(to bottom,
394+
rgba(255, 255, 255, 0.05) 0%,
395+
rgba(0, 0, 0, 0.05) 100%);
395396
cursor: pointer;
396397
transition: all 0.25s ease;
397398
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
@@ -834,37 +835,46 @@
834835
.leaderboard-container {
835836
padding: 24px 8px;
836837
}
838+
837839
.top-performers-grid {
838840
grid-template-columns: 1fr;
839841
gap: 20px;
840842
}
843+
841844
.stats-grid {
842845
grid-template-columns: 1fr;
843846
}
847+
844848
.contributors-header {
845849
display: none;
846850
}
851+
847852
.contributor-row {
848853
grid-template-columns: 1fr;
849854
gap: 16px;
850855
padding: 16px;
851856
margin-bottom: 12px;
852857
border-radius: 8px;
853858
}
859+
854860
.contributor-cell {
855861
padding: 0;
856862
}
863+
857864
.rank-cell {
858865
position: absolute;
859866
top: 8px;
860867
left: 8px;
861868
}
869+
862870
.avatar-cell {
863871
justify-self: center;
864872
}
873+
865874
.username-cell {
866875
text-align: center;
867876
}
877+
868878
.prs-cell,
869879
.points-cell {
870880
justify-self: center;
@@ -957,23 +967,19 @@
957967
width: 32px;
958968
height: 32px;
959969
border-radius: 50%;
960-
background: linear-gradient(
961-
90deg,
962-
rgba(0, 0, 0, 0.06) 25%,
963-
rgba(0, 0, 0, 0.12) 50%,
964-
rgba(0, 0, 0, 0.06) 75%
965-
);
970+
background: linear-gradient(90deg,
971+
rgba(0, 0, 0, 0.06) 25%,
972+
rgba(0, 0, 0, 0.12) 50%,
973+
rgba(0, 0, 0, 0.06) 75%);
966974
background-size: 200% 100%;
967975
animation: skeleton-shimmer 2s infinite;
968976
}
969977

970978
.skeleton-loader.dark .skeleton-avatar {
971-
background: linear-gradient(
972-
90deg,
973-
rgba(255, 255, 255, 0.05) 25%,
974-
rgba(255, 255, 255, 0.1) 50%,
975-
rgba(255, 255, 255, 0.05) 75%
976-
);
979+
background: linear-gradient(90deg,
980+
rgba(255, 255, 255, 0.05) 25%,
981+
rgba(255, 255, 255, 0.1) 50%,
982+
rgba(255, 255, 255, 0.05) 75%);
977983
background-size: 200% 100%;
978984
}
979985

@@ -993,23 +999,19 @@
993999
height: 16px;
9941000
width: 60%;
9951001
border-radius: 4px;
996-
background: linear-gradient(
997-
90deg,
998-
rgba(0, 0, 0, 0.06) 25%,
999-
rgba(0, 0, 0, 0.12) 50%,
1000-
rgba(0, 0, 0, 0.06) 75%
1001-
);
1002+
background: linear-gradient(90deg,
1003+
rgba(0, 0, 0, 0.06) 25%,
1004+
rgba(0, 0, 0, 0.12) 50%,
1005+
rgba(0, 0, 0, 0.06) 75%);
10021006
background-size: 200% 100%;
10031007
animation: skeleton-shimmer 2s infinite;
10041008
}
10051009

10061010
.skeleton-loader.dark .skeleton-bar {
1007-
background: linear-gradient(
1008-
90deg,
1009-
rgba(255, 255, 255, 0.05) 25%,
1010-
rgba(255, 255, 255, 0.1) 50%,
1011-
rgba(255, 255, 255, 0.05) 75%
1012-
);
1011+
background: linear-gradient(90deg,
1012+
rgba(255, 255, 255, 0.05) 25%,
1013+
rgba(255, 255, 255, 0.1) 50%,
1014+
rgba(255, 255, 255, 0.05) 75%);
10131015
background-size: 200% 100%;
10141016
}
10151017

@@ -1022,30 +1024,27 @@
10221024
height: 20px;
10231025
width: 60px;
10241026
border-radius: 12px;
1025-
background: linear-gradient(
1026-
90deg,
1027-
rgba(0, 0, 0, 0.06) 25%,
1028-
rgba(0, 0, 0, 0.12) 50%,
1029-
rgba(0, 0, 0, 0.06) 75%
1030-
);
1027+
background: linear-gradient(90deg,
1028+
rgba(0, 0, 0, 0.06) 25%,
1029+
rgba(0, 0, 0, 0.12) 50%,
1030+
rgba(0, 0, 0, 0.06) 75%);
10311031
background-size: 200% 100%;
10321032
animation: skeleton-shimmer 2s infinite;
10331033
}
10341034

10351035
.skeleton-loader.dark .skeleton-badge {
1036-
background: linear-gradient(
1037-
90deg,
1038-
rgba(255, 255, 255, 0.05) 25%,
1039-
rgba(255, 255, 255, 0.1) 50%,
1040-
rgba(255, 255, 255, 0.05) 75%
1041-
);
1036+
background: linear-gradient(90deg,
1037+
rgba(255, 255, 255, 0.05) 25%,
1038+
rgba(255, 255, 255, 0.1) 50%,
1039+
rgba(255, 255, 255, 0.05) 75%);
10421040
background-size: 200% 100%;
10431041
}
10441042

10451043
@keyframes skeleton-shimmer {
10461044
0% {
10471045
background-position: -200% 0;
10481046
}
1047+
10491048
100% {
10501049
background-position: 200% 0;
10511050
}
@@ -1469,4 +1468,4 @@
14691468
.pr-item-meta {
14701469
gap: 12px;
14711470
}
1472-
}
1471+
}

src/pages/dashboard/dashboard.css

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
z-index: 1051;
6363
}
6464

65-
.dashboard-mobile-menu > div:last-child {
65+
.dashboard-mobile-menu>div:last-child {
6666
position: absolute;
6767
top: 0;
6868
left: 0;
@@ -76,7 +76,7 @@
7676
transition: transform 0.3s ease;
7777
}
7878

79-
.dashboard-mobile-menu.show > div:last-child {
79+
.dashboard-mobile-menu.show>div:last-child {
8080
transform: translateX(0);
8181
}
8282

@@ -295,11 +295,9 @@
295295
left: 0;
296296
right: 0;
297297
height: 4px;
298-
background: linear-gradient(
299-
90deg,
300-
var(--ifm-color-primary),
301-
var(--ifm-color-primary-light)
302-
);
298+
background: linear-gradient(90deg,
299+
var(--ifm-color-primary),
300+
var(--ifm-color-primary-light));
303301
}
304302

305303
.dashboard-stat-card:hover {
@@ -322,9 +320,9 @@
322320
}
323321

324322
.dashboard-stat-title {
325-
font-size: 1.1rem;
323+
font-size: 1.2rem;
326324
font-weight: 600;
327-
margin-bottom: 8px;
325+
margin-bottom: inherit;
328326
color: var(--ifm-color-content-secondary);
329327
}
330328

@@ -343,7 +341,7 @@
343341
font-size: 0.9rem;
344342
color: var(--ifm-color-content-secondary);
345343
line-height: 1.4;
346-
margin: 0;
344+
margin-bottom: 0;
347345
}
348346

349347
.loading-spinner {
@@ -359,6 +357,7 @@
359357
0% {
360358
transform: rotate(0deg);
361359
}
360+
362361
100% {
363362
transform: rotate(360deg);
364363
}
@@ -714,4 +713,4 @@
714713
[data-theme="dark"] .loading-spinner {
715714
border-color: var(--ifm-color-emphasis-300);
716715
border-top-color: var(--ifm-color-primary);
717-
}
716+
}

src/pages/dashboard/giveaway/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ const giveawayStyles = `
419419
.dashboard-stat-value {
420420
font-size: 2.5rem;
421421
font-weight: 800;
422-
margin-bottom: 10px;
422+
margin-bottom: inherit;
423423
color: var(--ifm-color-primary);
424424
min-height: 60px;
425425
display: flex;

0 commit comments

Comments
 (0)