Skip to content

Commit f525262

Browse files
committed
update servers and partners list page
update react-window package version virtual list should now be used correctly some existing translations are synced from partners to servers page statComp will now be updated based on filterData prevented the default enter event of the input box
1 parent 12328dd commit f525262

6 files changed

Lines changed: 190 additions & 108 deletions

File tree

frontend/package-lock.json

Lines changed: 7 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"react-dom": "^19.0.0",
2828
"react-icons": "^5.4.0",
2929
"react-router-dom": "^7.1.5",
30-
"react-window": "^1.8.11"
30+
"react-window": "^2.2.7"
3131
},
3232
"devDependencies": {
3333
"@docusaurus/module-type-aliases": "^3.9.2",

frontend/src/css/custom.css

Lines changed: 70 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
@supports (font-variation-settings: normal) {
8-
:root {
8+
:root {
99
font-family: InterVariable, sans-serif, var(--ifm-heading-font-family);
1010
}
1111
}
@@ -33,10 +33,12 @@ html {
3333
--ifm-code-font-size: 95%;
3434
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
3535
--ifm-button-font-weight: 600;
36-
--ifm-footer-background-color:rgba(255, 255, 255, 0.35);
36+
--ifm-footer-background-color: rgba(255, 255, 255, 0.35);
3737

38-
font-family: 'Inter', sans-serif, var(--ifm-heading-font-family);
39-
font-feature-settings: 'liga' 1, 'calt' 1;
38+
font-family: Inter, sans-serif, var(--ifm-heading-font-family);
39+
font-feature-settings:
40+
"liga" 1,
41+
"calt" 1;
4042

4143
background-image: url(/images/assets/map.png);
4244
background-size: cover;
@@ -338,11 +340,43 @@ html[data-theme="dark"] {
338340
}
339341

340342
.servers-container {
343+
display: flex;
344+
flex-direction: column;
345+
padding: 1em 2em;
346+
align-items: center;
347+
box-sizing: border-box;
348+
width: 100%;
349+
height: calc(100vh - var(--ifm-navbar-height));
350+
}
351+
352+
.uid-container {
353+
display: block;
354+
width: 100%;
341355
max-width: 50em;
342-
margin: 80px auto 295px auto;
356+
margin: 80px auto 295px;
343357
padding: 1em 2em;
358+
}
359+
360+
.servers-partners-note {
361+
font-weight: bold;
362+
}
363+
364+
.servers-partners-note,
365+
.servers-container .servers-list-wrapper {
366+
max-width: 50em;
344367
width: 100%;
345-
box-sizing: border-box;
368+
}
369+
370+
.servers-container .servers-list-wrapper {
371+
display: flex;
372+
flex-direction: column;
373+
flex: 1;
374+
overflow: hidden;
375+
}
376+
377+
.servers-virtual-list {
378+
height: 100%;
379+
overflow: hidden;
346380
}
347381

348382
/* Loading banner styles */
@@ -391,22 +425,27 @@ html[data-theme="dark"] {
391425
padding-bottom: 0.3rem;
392426
margin-bottom: 0.5rem;
393427
background-color: var(--ifm-navbar-background-color);
394-
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.03), 0 1px 1px 0 rgba(0, 0, 0, 0.03);
428+
box-shadow:
429+
0 1px 1px 0 rgba(0, 0, 0, 0.03),
430+
0 1px 1px 0 rgba(0, 0, 0, 0.03);
395431
}
396432

397433
.server-header {
398434
display: flex;
399435
height: 30px;
400-
flex-direction: row;
401436
align-items: center;
402437
justify-content: space-between;
403438
margin-bottom: 0.5rem;
439+
gap: 18px;
404440
}
405441

406442
.server-heading {
407443
font-size: 1.25rem;
408444
font-weight: 600;
409445
margin: 0;
446+
overflow: hidden;
447+
white-space: nowrap;
448+
text-overflow: ellipsis;
410449
}
411450

412451
.server-link {
@@ -718,7 +757,18 @@ html[data-theme="dark"] {
718757

719758
.servers-container {
720759
padding: 1em;
721-
margin: 10px auto 50px auto;
760+
margin: 10px 0;
761+
height: auto;
762+
min-height: 100vh;
763+
}
764+
765+
.uid-container {
766+
margin: 10px auto 50px;
767+
padding: 1em;
768+
}
769+
770+
.servers-virtual-list {
771+
height: calc(100vh - var(--ifm-navbar-height) - 60px);
722772
}
723773

724774
.server-info-content-wrapper {
@@ -728,8 +778,18 @@ html[data-theme="dark"] {
728778
.server-info-section {
729779
padding: 0.5rem;
730780
}
781+
782+
.server-heading {
783+
font-size: 1rem;
784+
}
785+
786+
.server-player-count,
787+
.server-details,
788+
.copy-badge-text {
789+
font-size: 0.875rem;
790+
}
731791
}
732792

733793
.hash-link {
734794
font-family: var(--ifm-font-family-base);
735-
}
795+
}

0 commit comments

Comments
 (0)