Skip to content

Commit

Permalink
[styling bug] Fleet UI: Update live query disabled warning styling (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
RachelElysia authored Mar 29, 2024
1 parent 456b546 commit ea874bc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 32 deletions.
1 change: 1 addition & 0 deletions changes/17927-fix-styling-for-live-query-disabled-warning
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- UI fix: styling of live query disabled warning
29 changes: 13 additions & 16 deletions frontend/pages/queries/edit/EditQueryPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ import {
ICreateQueryRequestBody,
ISchedulableQuery,
} from "interfaces/schedulable_query";
import { IConfig } from "interfaces/config";

import QuerySidePanel from "components/side_panels/QuerySidePanel";
import MainContent from "components/MainContent";
import SidePanelContent from "components/SidePanelContent";
import CustomLink from "components/CustomLink";
import BackLink from "components/BackLink";
import InfoBanner from "components/InfoBanner";

import useTeamIdParam from "hooks/useTeamIdParam";

Expand All @@ -28,9 +31,7 @@ import PATHS from "router/paths";
import debounce from "utilities/debounce";
import deepDifference from "utilities/deep_difference";

import BackLink from "components/BackLink";
import EditQueryForm from "pages/queries/edit/components/EditQueryForm";
import { IConfig } from "interfaces/config";
import EditQueryForm from "./components/EditQueryForm";

interface IEditQueryPageProps {
router: InjectedRouter;
Expand Down Expand Up @@ -304,19 +305,15 @@ const EditQueryPage = ({
}

return (
<div className={`${baseClass}__warning`}>
<div className={`${baseClass}__message`}>
<p>
Fleet is unable to run a live query. Refresh the page or log in
again. If this keeps happening please{" "}
<CustomLink
url="https://github.com/fleetdm/fleet/issues/new/choose"
text="file an issue"
newTab
/>
</p>
</div>
</div>
<InfoBanner color="yellow">
Fleet is unable to run a live query. Refresh the page or log in again.
If this keeps happening please{" "}
<CustomLink
url="https://github.com/fleetdm/fleet/issues/new/choose"
text="file an issue"
newTab
/>
</InfoBanner>
);
};

Expand Down
16 changes: 0 additions & 16 deletions frontend/pages/queries/edit/_styles.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
.edit-query-page {
@include page;

&__warning {
padding: $pad-medium;
font-size: $x-small;
color: $core-fleet-black;
background-color: #fff0b9;
border: 1px solid #f2c94c;
border-radius: $border-radius;
margin: 0;
margin-top: $pad-large;

p {
margin: 0;
line-height: 20px;
}
}

.ace_content {
min-height: 500px !important;
}
Expand Down

0 comments on commit ea874bc

Please sign in to comment.