Skip to content

Commit ee4d15d

Browse files
committed
Add more effects to make new rows stand out.
This will probably change in the future. Doesn't abide by highlight new row setting.
1 parent d664ffb commit ee4d15d

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

src/components/SpotViewer/SpotViewer.scss

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,21 @@ xl, extra-large: 1536px
5858
}
5959

6060
.spotviewer-row-new {
61-
background-color: rgba(125, 200, 125, 0.35);
62-
//filter: saturate(4);
61+
//background-color: rgba(200, 159, 125, 0.35);
62+
background-color: rgba(37, 6, 113, 0.5);
63+
animation: pulse 5s 0s 2;
64+
}
65+
66+
@keyframes pulse {
67+
68+
0%,
69+
100% {
70+
background-color: rgba(37, 6, 113, 0.5);
71+
}
72+
73+
50% {
74+
background-color: #9e42b0;
75+
}
6376
}
6477

6578
.spotviewer-row-qrt:hover {

src/components/SpotViewer/SpotViewer.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@ export default function SpotViewer() {
358358

359359
<DataGrid
360360
rows={spots}
361+
sx={{
362+
"& .Mui-selected.spotviewer-row-new": {
363+
backgroundColor: "rgba(75, 30, 110, 0.75) !important"
364+
}
365+
}}
361366
slots={{ toolbar: CustomToolbar }}
362367
columns={columns}
363368
getRowId={getRowId}

0 commit comments

Comments
 (0)