Skip to content

Commit

Permalink
feat: Fix page bugs (#430)
Browse files Browse the repository at this point in the history
Signed-off-by: zhaoxinxin <1186037180@qq.com>
  • Loading branch information
Liam-Zhao authored Dec 30, 2024
1 parent dde2699 commit 0870a86
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/components/job/task/executions/show.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,11 @@
word-break: normal;
overflow: hidden;
}

.tableRow {
border-bottom: dashed var(--palette-divider);
}

.tableRow:last-child {
border-bottom: none;
}
11 changes: 9 additions & 2 deletions src/components/job/task/executions/show.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,14 @@ export default function ShowExecutions() {
Array.isArray(failure) &&
failure.map((item: any) => {
return (
<TableRow key={item?.id} sx={{ '&:last-child td, &:last-child th': { border: 0 } }}>
<TableRow
key={item?.id}
sx={{
'&:last-child td, &:last-child th': { border: 0 },
':hover': { backgroundColor: 'var(--palette-action-hover)' },
}}
className={styles.tableRow}
>
<TableCell align="center">
<Typography variant="body2" component="div" fontFamily="mabry-bold">
{item?.hostname}
Expand All @@ -595,7 +602,7 @@ export default function ShowExecutions() {
size="small"
variant="outlined"
sx={{
borderRadius: '0%',
borderRadius: '0.2rem',
backgroundColor:
item?.host_type === 'super' ? 'var( --description-color)' : 'var(--button-color)',
color: item?.host_type === 'super' ? '#FFFFFF' : '#FFFFFF',
Expand Down
1 change: 1 addition & 0 deletions src/components/users/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export default function Users() {
setAnchorElement(null);
setUserDetail(false);
setSwitchUser(false);
setSelectedRow(null);
};

const handleSubmit = async () => {
Expand Down

0 comments on commit 0870a86

Please sign in to comment.