Fleet UI: [small fixes] Table horizontally scrolls, "Get help" is on one line (#14414)

This commit is contained in:
RachelElysia 2023-10-11 11:16:45 -04:00 committed by GitHub
parent 414f83e29e
commit 102f2af372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 3 deletions

View File

@ -54,6 +54,8 @@
color: $core-fleet-black;
text-align: right;
gap: $pad-small;
min-width: max-content;
margin-left: $pad-small;
button {
margin-left: $pad-small;

View File

@ -248,12 +248,13 @@ const QueryDetailsPage = ({
);
const renderReport = () => {
const disabledCachingGlobally = true; // TODO: Update accordingly to config?.server_settings.query_reports_disabled
const discardDataEnabled = true; // TODO: Update accordingly to storedQuery?.discard_data
const disabledCachingGlobally =
config?.server_settings.query_reports_disabled || true;
const discardDataEnabled = storedQuery?.discard_data || true;
const loggingSnapshot = storedQuery?.logging === "snapshot";
const disabledCaching =
disabledCachingGlobally || discardDataEnabled || !loggingSnapshot;
const emptyCache = (queryReport?.results?.length ?? 0) === 0; // TODO: Update with API response
const emptyCache = (queryReport?.results?.length ?? 0) === 0;
// Loading state
if (isLoading) {

View File

@ -9,6 +9,10 @@
margin-bottom: 44px; // Fills space where filter is removed
}
}
.data-table__wrapper {
overflow-x: scroll;
}
}
&__results-cta {

View File

@ -924,6 +924,9 @@ const queryReport = {
columns: {
model: "Display Audio",
vendor: "Apple Inc.",
version: "5.11",
vender_id: "05ac",
usb_address: "6",
},
},
{