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 2022/09/01 08:46:17 UTC

[GitHub] [superset] zhaoyongjie commented on a diff in pull request #21282: fix(dashboard): Fix scrolling on "View as table" modal

zhaoyongjie commented on code in PR #21282:
URL: https://github.com/apache/superset/pull/21282#discussion_r960385110


##########
superset-frontend/src/explore/components/DataTablesPane/components/ResultsPaneOnDashboard.tsx:
##########
@@ -17,7 +17,7 @@
  * under the License.
  */
 import React from 'react';
-import { t } from '@superset-ui/core';
+import { t, css } from '@superset-ui/core';

Review Comment:
   @codyml Thanks for the fixing, there is a simple pattern for wrapping the existing components.
   
   ```typescript
   const Wrapper = styled.div`
     display: flex;
     flex-direction: column;
     height: 100%;
     .ant-tabs {
       height: 100%;
     }
     .ant-tabs-content {
       height: 100%;
     }
     .ant-tabs-tabpane {
       display: flex;
       flex-direction: column;
     }
     .table-condensed {
       overflow: auto;
     }
   `;
   ....
   ....
       return <Wrapper>{resultsPanes[0]}</Wrapper>;
   ....
   ....
       <Wrapper><Tabs fullWidth={false}> {panes} </Tabs></Wrapper>
   
   
   
   ```



-- 
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