---
.../queries/details/components/NoResults/NoResults.tsx | 10 +++++++---
.../queries/details/components/NoResults/_styles.scss | 9 +++++++++
2 files changed, 16 insertions(+), 3 deletions(-)
create mode 100644 frontend/pages/queries/details/components/NoResults/_styles.scss
diff --git a/frontend/pages/queries/details/components/NoResults/NoResults.tsx b/frontend/pages/queries/details/components/NoResults/NoResults.tsx
index 1f105ca493..c3f07b6de1 100644
--- a/frontend/pages/queries/details/components/NoResults/NoResults.tsx
+++ b/frontend/pages/queries/details/components/NoResults/NoResults.tsx
@@ -66,14 +66,18 @@ const NoResults = ({
// In order of empty page priority
if (disabledCaching) {
const tipContent = () => {
+ // TODO - change to JSX with refactor tooltipwrapper merge
if (disabledCachingGlobally) {
- return "The following setting prevents saving this query's results in Fleet:- Query reports are globally disabled in organization settings.
";
+ return `The following setting prevents saving this query's results in Fleet:
\
+ • Query reports are globally disabled in organization settings.
`;
}
if (discardDataEnabled) {
- return "The following setting prevents saving this query's results in Fleet:- This query has Discard data enabled.
";
+ return `The following setting prevents saving this query's results in Fleet:
\
+ • This query has Discard data enabled.
`;
}
if (!loggingSnapshot) {
- return "The following setting prevents saving this query's results in Fleet:- The logging setting for this query is not Snapshot.
";
+ return `The following setting prevents saving this query's results in Fleet:
\
+ • The logging setting for this query is not Snapshot.
`;
}
return "Unknown";
};
diff --git a/frontend/pages/queries/details/components/NoResults/_styles.scss b/frontend/pages/queries/details/components/NoResults/_styles.scss
new file mode 100644
index 0000000000..09fad9f2c0
--- /dev/null
+++ b/frontend/pages/queries/details/components/NoResults/_styles.scss
@@ -0,0 +1,9 @@
+.no-results {
+ .component__tooltip-wrapper {
+ &__tip-text {
+ display: flex;
+ flex-direction: column;
+ gap: $pad-xsmall;
+ }
+ }
+}