Skip to content

Commit a147b22

Browse files
authored
Merge pull request #4419 from czwe-01/thulasizwe/b/4098
Update styles in File list
2 parents b14c6fb + 2d78efe commit a147b22

File tree

1 file changed

+4
-4
lines changed
  • shesha-reactjs/src/components/storedFilesRendererBase/styles

1 file changed

+4
-4
lines changed

shesha-reactjs/src/components/storedFilesRendererBase/styles/styles.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export const useStyles = createStyles(({ token, css, cx, prefixCls }, { style =
3636
borderTopLeftRadius ?? allRadius ?? '8px',
3737
].join(' ');
3838

39+
const colorBgTextHover = '#f0f0f0';
40+
3941
const fileName = cx("item-file-name", css`
4042
display: ${model.hideFileName ? 'none' : 'flex'};
4143
color: ${color ?? token.colorPrimary} !important;
@@ -52,7 +54,7 @@ export const useStyles = createStyles(({ token, css, cx, prefixCls }, { style =
5254
flex: 1;
5355
cursor: pointer;
5456
&:hover {
55-
background-color: ${token.colorBgTextHover} !important;
57+
background-color: ${colorBgTextHover} !important;
5658
opacity: 1 !important;
5759
overflow: visible;
5860
width: max-content;
@@ -69,7 +71,7 @@ export const useStyles = createStyles(({ token, css, cx, prefixCls }, { style =
6971
display: ${model.hideFileName ? 'none' : 'flex'};
7072
cursor: pointer;
7173
&:hover {
72-
background-color: #f0f0f0 !important;
74+
background-color: ${colorBgTextHover} !important;
7375
border-radius: ${borderRadius ?? '4px'} !important;
7476
}
7577
> .item-file-name {
@@ -82,7 +84,6 @@ export const useStyles = createStyles(({ token, css, cx, prefixCls }, { style =
8284

8385
const downloadedFile = cx("downloaded-file", css`
8486
position: relative;
85-
display: flex;
8687
8788
.ant-upload-list-item-container {
8889
opacity: 0.8;
@@ -97,7 +98,6 @@ export const useStyles = createStyles(({ token, css, cx, prefixCls }, { style =
9798
}
9899
99100
.item-file-name {
100-
display: ${model.hideFileName ? 'none' : 'flex'};
101101
color: ${downloadedFileStyles?.color ?? color} !important;
102102
font-size: ${downloadedFileStyles?.fontSize ?? fontSize} !important;
103103
font-weight: ${downloadedFileStyles?.fontWeight ?? fontWeight} !important;

0 commit comments

Comments
 (0)