fix(style): model status
This commit is contained in:
@@ -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;
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
.transition-content-wrapper {
|
||||
background-color: var(--color-fill-1);
|
||||
padding: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user