"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "c2283310688ff75e8fb4be3d9938ed0818cb038d"
Unverified Commit 11520942 authored by Lijiaoa's avatar Lijiaoa Committed by GitHub
Browse files

fix bugs on second bug bash (#3016)


Co-authored-by: default avatarLijiao <Lijiaoa@outlook.com>
parent 6aae16c5
...@@ -28,9 +28,9 @@ export const Command1 = (): any => { ...@@ -28,9 +28,9 @@ export const Command1 = (): any => {
} }
return ( return (
<div className='command basic'> <div className='basic'>
<div> <div>
<p>Training platform</p> <p className='command'>Training platform</p>
<div className='nowrap'>{EXPERIMENT.profile.params.trainingServicePlatform}</div> <div className='nowrap'>{EXPERIMENT.profile.params.trainingServicePlatform}</div>
<p className='lineMargin'>{title}</p> <p className='lineMargin'>{title}</p>
<div className='nowrap'>{builtinName}</div> <div className='nowrap'>{builtinName}</div>
......
...@@ -16,8 +16,8 @@ export const Command2 = (): any => { ...@@ -16,8 +16,8 @@ export const Command2 = (): any => {
} }
} }
return ( return (
<div className='command basic'> <div className='basic'>
<p>Log directory</p> <p className='command'>Log directory</p>
<div className='nowrap'> <div className='nowrap'>
<TooltipHost <TooltipHost
content={EXPERIMENT.profile.logDir || 'unknown'} content={EXPERIMENT.profile.logDir || 'unknown'}
......
...@@ -154,6 +154,7 @@ export const EditExperimentParam = (): any => { ...@@ -154,6 +154,7 @@ export const EditExperimentParam = (): any => {
return val; return val;
} }
} }
return ( return (
<AppContext.Consumer> <AppContext.Consumer>
{(values): React.ReactNode => { {(values): React.ReactNode => {
......
...@@ -19,9 +19,9 @@ const entriesOption = [ ...@@ -19,9 +19,9 @@ const entriesOption = [
]; ];
const durationUnit = [ const durationUnit = [
{ key: 'm', text: 'm' }, { key: 'm', text: 'min' },
{ key: 'h', text: 'h' }, { key: 'h', text: 'hour' },
{ key: 'd', text: 'd' } { key: 'd', text: 'day' }
]; ];
export { itemStyle1, itemStyleSucceed, itemStyle2, entriesOption, durationUnit }; export { itemStyle1, itemStyleSucceed, itemStyle2, entriesOption, durationUnit };
...@@ -28,6 +28,7 @@ import '../../static/style/pagination.scss'; ...@@ -28,6 +28,7 @@ import '../../static/style/pagination.scss';
import '../../static/style/search.scss'; import '../../static/style/search.scss';
import '../../static/style/table.scss'; import '../../static/style/table.scss';
import '../../static/style/tableStatus.css'; import '../../static/style/tableStatus.css';
import '../../static/style/overview/overviewTitle.scss';
import { blocked, copy, LineChart, tableListIcon } from '../buttons/Icon'; import { blocked, copy, LineChart, tableListIcon } from '../buttons/Icon';
import ChangeColumnComponent from '../modals/ChangeColumnComponent'; import ChangeColumnComponent from '../modals/ChangeColumnComponent';
import Compare from '../modals/Compare'; import Compare from '../modals/Compare';
...@@ -297,17 +298,16 @@ class TableList extends React.Component<TableListProps, TableListState> { ...@@ -297,17 +298,16 @@ class TableList extends React.Component<TableListProps, TableListState> {
// FIXME: default metric is hacked as latestAccuracy currently // FIXME: default metric is hacked as latestAccuracy currently
continue; continue;
} }
const lengths = tableItems.map(item => `${item[k]}`.length);
const avgLengths = lengths.reduce((a, b) => a + b) / lengths.length;
const columnTitle = _inferColumnTitle(k); const columnTitle = _inferColumnTitle(k);
const columnWidth = Math.max(columnTitle.length, avgLengths);
// TODO: add blacklist // TODO: add blacklist
// 0.85: tableWidth / screen
const widths = window.innerWidth * 0.85;
columns.push({ columns.push({
name: columnTitle, name: columnTitle,
key: k, key: k,
fieldName: k, fieldName: k,
minWidth: columnWidth * 13, minWidth: widths * 0.12,
maxWidth: columnWidth * 18, maxWidth: widths * 0.19,
isResizable: true, isResizable: true,
onColumnClick: this._onColumnClick.bind(this), onColumnClick: this._onColumnClick.bind(this),
...(k === 'status' && { ...(k === 'status' && {
...@@ -371,8 +371,8 @@ class TableList extends React.Component<TableListProps, TableListState> { ...@@ -371,8 +371,8 @@ class TableList extends React.Component<TableListProps, TableListState> {
name: 'Operation', name: 'Operation',
key: '_operation', key: '_operation',
fieldName: 'operation', fieldName: 'operation',
minWidth: 160, minWidth: 150,
maxWidth: 200, maxWidth: 160,
isResizable: true, isResizable: true,
className: 'detail-table', className: 'detail-table',
onRender: this._renderOperationColumn.bind(this) onRender: this._renderOperationColumn.bind(this)
......
.command { .overviewCommand1,
p { .overviewCommand2 {
.command {
margin-top: 0; margin-top: 0;
font-weight: normal;
} }
}
.basic {
.lineMargin { .lineMargin {
margin-top: 20px; margin-top: 20px;
font-weight: normal;
} }
} }
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
.ms-Button--default { .ms-Button--default {
padding: 0 8px; padding: 0 8px;
margin: 0 0 12px 0; margin: 0 0 12px 0;
border: 1px solid #ccc; border: none;
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.08);
border-radius: 18px 0 0 18px; border-radius: 18px 0 0 18px;
font-size: 12px; font-size: 12px;
text-align: left; text-align: left;
......
$iconPaddingVal: 20px; $iconPaddingVal: 20px;
.panelTitle { .panelTitle {
img {
height: 23px;
/* (38 - 22 ) / 2 */
margin-top: 8px;
/* icon right */
padding: 0 $iconPaddingVal 0 0;
}
span { span {
font-size: 18px; font-size: 18px;
font-weight: 600; font-weight: 600;
......
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