fix(style): model status

This commit is contained in:
jialin
2024-07-08 19:47:47 +08:00
parent 9ad9539b51
commit 734368dd49
25 changed files with 109 additions and 83 deletions
+7
View File
@@ -0,0 +1,7 @@
import { createFromIconfontCN } from '@ant-design/icons';
const IconFont = createFromIconfontCN({
scriptUrl: '//at.alicdn.com/t/c/font_4613488_clxjnjvlf6m.js'
});
export default IconFont;
+3 -3
View File
@@ -12,7 +12,7 @@
overflow: hidden;
&.download {
background-color: var(--ant-blue-2);
border: 1px solid var(--ant-color-border) !important;
}
.download {
@@ -24,12 +24,12 @@
top: 0;
bottom: 0;
height: 100%;
background-color: var(--ant-color-primary);
background-color: rgba(0, 0, 0, 15%);
}
.progress {
position: relative;
z-index: 10;
color: var(--color-white-1);
color: var(--ant-color-text);
}
}
+4 -11
View File
@@ -51,17 +51,10 @@ const StatusTag: React.FC<StatusTagProps> = ({ statusValue, download }) => {
className={classNames('status-tag', {
download: download?.percent
})}
style={
download
? {
color: StatusColorMap['success']['text'],
border: `1px solid ${StatusColorMap['success']['text']}`
}
: {
color: statusColor?.text,
border: `1px solid ${statusColor?.text}`
}
}
style={{
color: statusColor?.text,
border: `1px solid ${statusColor?.text}`
}}
>
{renderContent()}
</span>
-1
View File
@@ -16,7 +16,6 @@
.transition-content-wrapper {
background-color: var(--color-fill-1);
padding: 8px;
}
}
+2 -1
View File
@@ -73,7 +73,8 @@ const TransitionWrapper: React.FC<TransitionWrapProps> = forwardRef(
className="transition-content-wrapper"
style={{
minHeight: isOpen ? height : 0,
height: isOpen ? 'auto' : 0
height: isOpen ? 'auto' : 0,
padding: isOpen ? '8px' : '0 8px'
}}
ref={contentRef}
>