Skip to content

Commit 0870a86

Browse files
authored
feat: Fix page bugs (#430)
Signed-off-by: zhaoxinxin <1186037180@qq.com>
1 parent dde2699 commit 0870a86

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

src/components/job/task/executions/show.module.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,11 @@
7676
word-break: normal;
7777
overflow: hidden;
7878
}
79+
80+
.tableRow {
81+
border-bottom: dashed var(--palette-divider);
82+
}
83+
84+
.tableRow:last-child {
85+
border-bottom: none;
86+
}

src/components/job/task/executions/show.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,14 @@ export default function ShowExecutions() {
571571
Array.isArray(failure) &&
572572
failure.map((item: any) => {
573573
return (
574-
<TableRow key={item?.id} sx={{ '&:last-child td, &:last-child th': { border: 0 } }}>
574+
<TableRow
575+
key={item?.id}
576+
sx={{
577+
'&:last-child td, &:last-child th': { border: 0 },
578+
':hover': { backgroundColor: 'var(--palette-action-hover)' },
579+
}}
580+
className={styles.tableRow}
581+
>
575582
<TableCell align="center">
576583
<Typography variant="body2" component="div" fontFamily="mabry-bold">
577584
{item?.hostname}
@@ -595,7 +602,7 @@ export default function ShowExecutions() {
595602
size="small"
596603
variant="outlined"
597604
sx={{
598-
borderRadius: '0%',
605+
borderRadius: '0.2rem',
599606
backgroundColor:
600607
item?.host_type === 'super' ? 'var( --description-color)' : 'var(--button-color)',
601608
color: item?.host_type === 'super' ? '#FFFFFF' : '#FFFFFF',

src/components/users/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ export default function Users() {
193193
setAnchorElement(null);
194194
setUserDetail(false);
195195
setSwitchUser(false);
196+
setSelectedRow(null);
196197
};
197198

198199
const handleSubmit = async () => {

0 commit comments

Comments
 (0)