Skip to content

Commit 1c08778

Browse files
Merge remote-tracking branch 'origin/dev' into dev
2 parents 322660e + 483e5fe commit 1c08778

11 files changed

Lines changed: 817 additions & 969 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@testing-library/react": "13.4.0",
2121
"@testing-library/user-event": "13.5.0",
2222
"ajv": "6.12.6",
23+
"antd": "^5.26.3",
2324
"babel-plugin-macros": "3.1.0",
2425
"buffer": "6.0.3",
2526
"cm6-theme-basic-dark": "0.2.0",

public/TableDark.css

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,7 @@
10821082
overflow: hidden;
10831083
display: flex;
10841084
align-items: center;
1085+
border-bottom: 1px solid #2a2a2a;
10851086
}
10861087

10871088
.p-dropdown-item-group {
@@ -9421,16 +9422,52 @@
94219422

94229423
.p-rowgroup-header {
94239424
background-color: #3b3b3b;
9425+
border-bottom: 1px solid #2a2a2a;
94249426
}
94259427

94269428
.p-datatable-thead > tr > th {
94279429
background: #313131;
94289430
}
94299431

94309432
.p-datatable-header {
9431-
background-color: #313131;
9433+
background-color: #2b2b2b;
94329434
}
94339435

94349436
.p-dropdown-item:hover {
9435-
background-color: #3d3d3d;
9436-
}
9437+
background-color: #2f3033;
9438+
}
9439+
9440+
.chip-plain {
9441+
color: white;
9442+
background-color: #414041;
9443+
}
9444+
9445+
.chip-status-admit-green {
9446+
color: white;
9447+
background-color: #5cc754;
9448+
}
9449+
9450+
.chip-status-reject-red {
9451+
color: white;
9452+
background-color: #e54757;
9453+
}
9454+
9455+
.chip-status-waitlist-grey {
9456+
color: white;
9457+
background-color: #414041;
9458+
}
9459+
9460+
.chip-status-defer-orange {
9461+
color: white;
9462+
background-color: #ec9727;
9463+
}
9464+
9465+
.chip-semester-fall-orange {
9466+
color: white;
9467+
background-color: #eb7f2b;
9468+
}
9469+
9470+
.chip-semester-spring-cyan {
9471+
color: white;
9472+
background-color: #51b991;
9473+
}

public/TableLight.css

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,7 @@
10821082
overflow: hidden;
10831083
display: flex;
10841084
align-items: center;
1085+
border-bottom: 1px solid #e0e0e0;
10851086
}
10861087

10871088
.p-dropdown-item-group {
@@ -9421,16 +9422,53 @@
94219422

94229423
.p-rowgroup-header {
94239424
background-color: #f1f0f0;
9425+
border-bottom: 1px solid #e0e0e0;
94249426
}
94259427

94269428
.p-datatable-thead > tr > th {
94279429
background: #e3e3e3;
94289430
}
94299431

94309432
.p-datatable-header {
9431-
background-color: #efefef;
9433+
background-color: #dfdfdf;
94329434
}
94339435

94349436
.p-dropdown-item:hover {
9435-
background-color: #999999;
9436-
}
9437+
background-color: #efefef;
9438+
}
9439+
9440+
/* Color for self-made Chips */
9441+
.chip-plain {
9442+
color: black;
9443+
background-color: #ebebeb;
9444+
}
9445+
9446+
.chip-status-admit-green {
9447+
color: white;
9448+
background-color: #59bc54;
9449+
}
9450+
9451+
.chip-status-reject-red {
9452+
color: white;
9453+
background-color: #e5414e;
9454+
}
9455+
9456+
.chip-status-waitlist-grey {
9457+
color: black;
9458+
background-color: #eaeaea;
9459+
}
9460+
9461+
.chip-status-defer-orange {
9462+
color: white;
9463+
background-color: #eb9223;
9464+
}
9465+
9466+
.chip-semester-fall-orange {
9467+
color: white;
9468+
background-color: #eb7f2b;
9469+
}
9470+
9471+
.chip-semester-spring-cyan {
9472+
color: white;
9473+
background-color: #51b991;
9474+
}

src/Components/DataPoints/DataPoints.css

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.DataPointsContent {
22
width: 100%;
3-
margin: 10px;
3+
margin-top: 10px;
44
overflow-x: auto;
55
user-select: text;
66
height: calc(100% - 20px);
@@ -22,18 +22,6 @@
2222
padding: 8px;
2323
}
2424

25-
@keyframes fadeIn {
26-
from { opacity: 0; transform: translateY(-10px); }
27-
to { opacity: 1; transform: translateY(0); }
28-
}
29-
30-
.filter-container {
31-
display: flex;
32-
flex-wrap: wrap;
33-
gap: 16px;
34-
align-items: flex-start;
35-
}
36-
3725
/* 优化每个过滤器元素的宽度和样式 */
3826
.filter-container > .MuiTextField-root,
3927
.filter-container > .MuiFormControl-root {
@@ -54,12 +42,12 @@
5442
/* 搜索结果指示器 */
5543
.search-results-indicator {
5644
background-color: rgba(128, 128, 128, 0.08);
57-
padding: 8px 16px;
45+
padding: 6px 16px;
5846
border-radius: 8px;
59-
margin-bottom: 12px;
47+
margin: 6px;
6048
display: flex;
6149
align-items: center;
62-
justify-content: space-between;
50+
justify-content: center;
6351
animation: fadeIn 0.3s ease;
6452
}
6553

@@ -119,12 +107,6 @@
119107
form .MuiFab-root {
120108
z-index: 1060 !important; /* Match the z-index with the close button */
121109
}
122-
123-
/* Ensure the help/close button is always visible and on top */
124-
.HiddenHelpButton {
125-
z-index: 1070 !important; /* Higher than everything else */
126-
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important; /* Enhanced shadow */
127-
}
128110
}
129111

130112
.DataTableStyle {
@@ -256,4 +238,29 @@
256238

257239
.p-dropdown-panel .p-dropdown-items .p-dropdown-item {
258240
padding: 5px 1rem 5px 1rem;
259-
}
241+
}
242+
243+
.group-header {
244+
height: 40px;
245+
padding-top: 10px;
246+
}
247+
248+
@media (max-width: 1024px) {
249+
.group-header {
250+
height: 25px;
251+
padding-top: 6px;
252+
}
253+
}
254+
255+
.refresh-button {
256+
position: fixed;
257+
z-index: 20;
258+
bottom: 40px;
259+
right: 20px;
260+
}
261+
262+
@media (max-width: 768px) {
263+
bottom: 20px;
264+
right: 16px;
265+
transform: scale(0.9);
266+
}

0 commit comments

Comments
 (0)