rusackas commented on code in PR #21482:
URL: https://github.com/apache/superset/pull/21482#discussion_r974873995


##########
superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:
##########
@@ -404,16 +429,33 @@ export default function TableChart<D extends DataRecord = 
DataRecord>(
 
           const StyledCell = styled.td`
             text-align: ${sharedStyle.textAlign};
-            background: ${backgroundColor ||
-            (valueRange
-              ? cellBar({
+            white-space: ${value instanceof Date ? 'nowrap' : undefined};
+            position: relative;
+            background: ${backgroundColor || undefined};
+          `;
+
+          const cellBarStyles = css`
+            position: absolute;
+            height: 100%;
+            display: block;
+            top: 0;
+            ${valueRange &&

Review Comment:
   This is actually just avoiding a bit of a typescript rabbit hole. The 
conditional isn't _really_ needed here, but if you take it out, it starts 
pulling the loose thread on a sweater...
   
   The div that's being rendered with these styles is already conditionally 
rendered upon valueRange, so it will always be there. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to