Unverified Commit 5d177d69 authored by Lijiaoa's avatar Lijiaoa Committed by GitHub
Browse files

fix some issues about webui overview page (#3237)

parent fdd22cba
...@@ -211,7 +211,9 @@ class Experiment extends React.Component<{}, ExpListState> { ...@@ -211,7 +211,9 @@ class Experiment extends React.Component<{}, ExpListState> {
onColumnClick: this.onColumnClick, onColumnClick: this.onColumnClick,
onRender: (item: any): React.ReactNode => ( onRender: (item: any): React.ReactNode => (
<div className='succeed-padding'> <div className='succeed-padding'>
<div>{item.port !== undefined ? item.port : '--'}</div> <div className={item.status === 'STOPPED' ? 'gray-port' : ''}>
{item.port !== undefined ? item.port : '--'}
</div>
</div> </div>
) )
}, },
......
...@@ -36,7 +36,7 @@ export const BasicInfo = (): any => { ...@@ -36,7 +36,7 @@ export const BasicInfo = (): any => {
<span className={`${EXPERIMENT.status} status-text`}>{EXPERIMENT.status}</span> <span className={`${EXPERIMENT.status} status-text`}>{EXPERIMENT.status}</span>
{EXPERIMENT.status === 'ERROR' ? ( {EXPERIMENT.status === 'ERROR' ? (
<div> <div>
<div className={styles.buttonArea} ref={ref}> <div className={`${styles.buttonArea} error-info-icon`} ref={ref}>
<IconButton <IconButton
iconProps={{ iconName: 'info' }} iconProps={{ iconName: 'info' }}
onClick={isCalloutVisible ? onDismiss : showCallout} onClick={isCalloutVisible ? onDismiss : showCallout}
......
...@@ -31,7 +31,8 @@ class ExperimentsManager { ...@@ -31,7 +31,8 @@ class ExperimentsManager {
} }
platforms.add(item.platform); platforms.add(item.platform);
} }
this.experimentList = data; // this.experimentList = data.reverse();
this.experimentList = data.sort((a, b) => b.startTime - a.startTime);
this.platform = Array.from(platforms); this.platform = Array.from(platforms);
}) })
.catch(error => { .catch(error => {
......
...@@ -79,3 +79,7 @@ $pageMargin: 24px; ...@@ -79,3 +79,7 @@ $pageMargin: 24px;
background: #e1dfdd; background: #e1dfdd;
} }
} }
.gray-port {
color: #E2E2E2;
}
.status { .status {
height: 21px;
color: #0573bc; color: #0573bc;
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
...@@ -6,10 +7,17 @@ ...@@ -6,10 +7,17 @@
.status-text { .status-text {
display: inline-block; display: inline-block;
} }
}
.color { /* for overview page: status error info icon's style */
color: #333; .error-info-icon {
} position: relative;
top: -4px;
}
/* error body font-color */
.color {
color: #333 !important;
} }
.inputBox { .inputBox {
......
...@@ -65,7 +65,8 @@ $boxGapPadding: 10px; ...@@ -65,7 +65,8 @@ $boxGapPadding: 10px;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
p { p {
font-size: 14px; font-size: 14px;
font-weight: normal;
color: #8f8f8f; color: #8f8f8f;
span { span {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment