From: Taewan Kim Date: Wed, 10 May 2023 14:31:29 +0000 (+0900) Subject: Use elements to data cells in the tables and align them center. X-Git-Tag: 1.1.0~4^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F77%2F11077%2F1;p=portal%2Faiml-dashboard.git Use elements to data cells in the tables and align them center. Change-Id: Ie807227691f92b9f6fd5a580c670bc6ac342ba67 Signed-off-by: Taewan Kim --- diff --git a/src/App.css b/src/App.css index 5eeb5a1..d1fdcba 100644 --- a/src/App.css +++ b/src/App.css @@ -17,16 +17,21 @@ ================================================================================== */ .App { - text-align: initial; - } -.table > thead > tr > th{ - background-color: rgb(41, 107, 250); - text-align: center; - outline-style: initial; - border-bottom-width: thick; - color: white; - /*font-family: "Times New Roman", Times, serif;*/ - + text-align: initial; +} + +.table > thead > tr > th { + background-color: rgb(41, 107, 250); + text-align: center; + outline-style: initial; + border-bottom-width: thick; + color: white; + /*font-family: "Times New Roman", Times, serif;*/ +} + +.table td { + text-align: center; + vertical-align: baseline; } .status-buttons { @@ -34,13 +39,11 @@ background-color: #4CAF50; } - .create-tab { font-weight: bold; font-size: 17px; } - .upload-pl-form { font-size: 15px; font-weight: bold; @@ -57,37 +60,38 @@ display: flex; justify-content: flex-end; } + .App-logo { - height: 40vmin; - pointer-events: none; - } + height: 40vmin; + pointer-events: none; +} - @media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } +@media (prefers-reduced-motion: no-preference) { + .App-logo { + animation: App-logo-spin infinite 20s linear; } +} - .App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; - } +.App-header { + background-color: #282c34; + min-height: 100vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + font-size: calc(10px + 2vmin); + color: white; +} + +.App-link { + color: #61dafb; +} - .App-link { - color: #61dafb; +@keyframes App-logo-spin { + from { + transform: rotate(0deg); } - - @keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } - } \ No newline at end of file + to { + transform: rotate(360deg); + } +} \ No newline at end of file diff --git a/src/components/home/status/ListFeatureGroup.js b/src/components/home/status/ListFeatureGroup.js index b553e0e..65529ed 100644 --- a/src/components/home/status/ListFeatureGroup.js +++ b/src/components/home/status/ListFeatureGroup.js @@ -184,9 +184,9 @@ const ListFeatureGroup = (props) => { {row.cells.map(cell => { return ( - + {cell.render('Cell')} - + ) })} diff --git a/src/components/home/status/StatusPageRows.js b/src/components/home/status/StatusPageRows.js index bf30421..a1fbc44 100644 --- a/src/components/home/status/StatusPageRows.js +++ b/src/components/home/status/StatusPageRows.js @@ -217,9 +217,9 @@ const StatusPageRows = (props) => { {row.cells.map(cell => { return ( - + {cell.render('Cell')} - + ) })}