You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by aa...@apache.org on 2022/08/05 20:15:22 UTC
[superset] 01/01: easy fix
This is an automated email from the ASF dual-hosted git repository.
aafghahi pushed a commit to branch arash/limitQuery
in repository https://gitbox.apache.org/repos/asf/superset.git
commit bf9cb6ed353d69c44d17f868536fd231f661e949
Author: AAfghahi <ar...@gmail.com>
AuthorDate: Fri Aug 5 16:15:00 2022 -0400
easy fix
---
.../src/SqlLab/components/ResultSet/index.tsx | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/superset-frontend/src/SqlLab/components/ResultSet/index.tsx b/superset-frontend/src/SqlLab/components/ResultSet/index.tsx
index 9e1df28b4b..00466019b1 100644
--- a/superset-frontend/src/SqlLab/components/ResultSet/index.tsx
+++ b/superset-frontend/src/SqlLab/components/ResultSet/index.tsx
@@ -21,7 +21,13 @@ import ButtonGroup from 'src/components/ButtonGroup';
import Alert from 'src/components/Alert';
import Button from 'src/components/Button';
import shortid from 'shortid';
-import { styled, t, QueryResponse } from '@superset-ui/core';
+import {
+ styled,
+ t,
+ QueryResponse,
+ css,
+ SupersetTheme,
+} from '@superset-ui/core';
import ErrorMessageWithStackTrace from 'src/components/ErrorMessage/ErrorMessageWithStackTrace';
import {
ISaveableDatasource,
@@ -116,6 +122,11 @@ const ResultSetButtons = styled.div`
padding-right: ${({ theme }) => 2 * theme.gridUnit}px;
`;
+const LimitMessage = styled.span`
+ color: ${({ theme }) => theme.colors.secondary.light1};
+ margin-left: ${({ theme }) => theme.gridUnit * 2}px;
+`;
+
export default class ResultSet extends React.PureComponent<
ResultSetProps,
ResultSetState
@@ -377,7 +388,7 @@ export default class ResultSet extends React.PureComponent<
{!limitReached && !shouldUseDefaultDropdownAlert && (
<span title={tooltipText}>
{rowsReturnedMessage}
- <span>{limitMessage}</span>
+ <LimitMessage>{limitMessage}</LimitMessage>
</span>
)}
{!limitReached && shouldUseDefaultDropdownAlert && (