From f4b4d5ded4b7e0ff2116ba3b8f97e49fbf30b7c0 Mon Sep 17 00:00:00 2001 From: alex-krasn <64093224+alex-krasn@users.noreply.github.com> Date: Tue, 21 Jul 2020 13:36:16 -0700 Subject: [PATCH] fix: DOM table nesting (#438) * fix: DOM table nesting * refactor: use td instead of th and limit padding Co-authored-by: stew-ro --- .../components/pages/predict/predictPage.tsx | 48 ++++++++++--------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/src/react/components/pages/predict/predictPage.tsx b/src/react/components/pages/predict/predictPage.tsx index ae1303f0d..c1a051ab7 100644 --- a/src/react/components/pages/predict/predictPage.tsx +++ b/src/react/components/pages/predict/predictPage.tsx @@ -250,28 +250,32 @@ export default class PredictPage extends React.Component {strings.predict.selectModelHeader} - -
- - {strings.predict.modelIDPrefix} - - - {mostRecentModel.modelInfo.modelId} - -
- - - {mostRecentModel.modelInfo.modelName && -
- - {strings.predict.modelNamePrefix} - - - {mostRecentModel.modelInfo.modelName} - -
- } - + + + + + + + {mostRecentModel.modelInfo.modelName && + + } + + +
+ + {strings.predict.modelIDPrefix} + + + {mostRecentModel.modelInfo.modelId} + +
+ + {strings.predict.modelNamePrefix} + + + {mostRecentModel.modelInfo.modelName} + +