Browse Source

fix(tooltip): top to right and only when it starts to have k (#25000)

* moved tooltip to side

* added conditional
Dora 3 years ago
parent
commit
03ed509478
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/sentry/static/sentry/app/views/performance/table.tsx

+ 6 - 2
src/sentry/static/sentry/app/views/performance/table.tsx

@@ -146,9 +146,13 @@ class Table extends React.Component<Props, State> {
 
     const fieldName = getAggregateAlias(field);
     const value = dataRow[fieldName];
-    if (tableMeta[fieldName] === 'integer' && defined(value)) {
+    if (tableMeta[fieldName] === 'integer' && defined(value) && value > 999) {
       return (
-        <Tooltip title={value.toLocaleString()} containerDisplayMode="block">
+        <Tooltip
+          title={value.toLocaleString()}
+          containerDisplayMode="block"
+          position="right"
+        >
           <CellAction
             column={column}
             dataRow={dataRow}