You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/08/12 20:03:43 UTC

[GitHub] [superset] rusackas commented on a change in pull request #16200: chore: Shows the dataset description in the gallery dropdown

rusackas commented on a change in pull request #16200:
URL: https://github.com/apache/superset/pull/16200#discussion_r688046821



##########
File path: superset-frontend/src/addSlice/AddSliceContainer.tsx
##########
@@ -81,6 +87,34 @@ const StyledContainer = styled.div`
         margin-top: ${theme.gridUnit * 6}px;
       }
     }
+
+    & .ant-tooltip-open {
+      display: inline;
+    }
+  `}
+`;
+
+const TooltipContent = styled.div<{ hasDescription: boolean }>`
+  ${({ theme, hasDescription }) => `
+    .tooltip-header {
+      font-size: ${
+        hasDescription ? theme.typography.sizes.l : theme.typography.sizes.s
+      }px;
+      font-weight: ${
+        hasDescription
+          ? theme.typography.weights.bold
+          : theme.typography.weights.normal
+      };
+    }
+
+    .tooltip-description {
+      margin-top: ${theme.gridUnit * 2}px;
+      display: -webkit-box;
+      -webkit-line-clamp: 20;

Review comment:
       Ooh, you don't get to use that every day.




-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org