diff --git a/web/src/App.jsx b/web/src/App.jsx index ce43268ee5..c5095e795c 100644 --- a/web/src/App.jsx +++ b/web/src/App.jsx @@ -26,8 +26,19 @@ import { useInstallerClient } from "~/context/installer"; import { STARTUP, INSTALL } from "~/client/phase"; import { BUSY } from "~/client/status"; +import { + About, + Disclosure, + Installation, + IssuesLink, + LoadingEnvironment, + LogsButton, + ShowLogButton, + ShowTerminalButton, + Sidebar +} from "~/components/core"; +import { ChangeProductLink } from "~/components/software"; import { Layout, Title, DBusError } from "~/components/layout"; -import { Installation, LoadingEnvironment } from "~/components/core"; function App() { const client = useInstallerClient(); @@ -71,10 +82,23 @@ function App() { }; return ( - - Agama - - + <> + + + + + + + + + + + + + Agama + + + ); } diff --git a/web/src/App.test.jsx b/web/src/App.test.jsx index 9adae67c95..4294e691bb 100644 --- a/web/src/App.test.jsx +++ b/web/src/App.test.jsx @@ -36,6 +36,7 @@ jest.mock("~/components/layout/DBusError", () => mockComponent("D-BusError Mock" jest.mock("~/components/core/LoadingEnvironment", () => mockComponent("LoadingEnvironment Mock")); jest.mock("~/components/questions/Questions", () => mockComponent("Questions Mock")); jest.mock("~/components/core/Installation", () => mockComponent("Installation Mock")); +jest.mock("~/components/core/Sidebar", () => mockComponent("Sidebar Mock")); // this object holds the mocked callbacks const callbacks = {}; diff --git a/web/src/assets/styles/app.scss b/web/src/assets/styles/app.scss index e052951a3d..5e4ef53c32 100644 --- a/web/src/assets/styles/app.scss +++ b/web/src/assets/styles/app.scss @@ -1,5 +1,13 @@ #root { - height: 100%; + position: relative; + /** block-size fallbacks **/ + height: 100vh; + height: 100dvb; + block-size: 100vh; + /** END of block-size fallbacks **/ + block-size: 100dvb; + max-inline-size: var(--ui-max-inline-size); + margin-inline: auto; } // Make proposal actions compact diff --git a/web/src/assets/styles/blocks.scss b/web/src/assets/styles/blocks.scss index abea6d5559..baf603ea2d 100644 --- a/web/src/assets/styles/blocks.scss +++ b/web/src/assets/styles/blocks.scss @@ -84,7 +84,7 @@ section > .content { right: 0; z-index: 1; inline-size: 70%; - box-shadow: 0 0 20px 10px var(--color-primary); + box-shadow: -10px 10px 20px 0 var(--color-primary); } .sidebar header { @@ -95,10 +95,6 @@ section > .content { border-top: 1px solid var(--color-gray); } -.sidebar > div { - margin-inline-start: var(--pf-global--spacer--md); -} - .sidebar a, .sidebar button { font-size: 16px; font-weight: var(--fw-bold); diff --git a/web/src/assets/styles/layout.scss b/web/src/assets/styles/layout.scss index 517872e26a..eca0fc4683 100644 --- a/web/src/assets/styles/layout.scss +++ b/web/src/assets/styles/layout.scss @@ -13,8 +13,7 @@ block-size: 100vh; /** END of block-size fallbacks **/ block-size: 100dvb; - max-inline-size: 1024px; - margin-inline: auto; + background: var(--wrapper-background); svg { diff --git a/web/src/assets/styles/variables.scss b/web/src/assets/styles/variables.scss index 637ce4b83c..41cde075b0 100644 --- a/web/src/assets/styles/variables.scss +++ b/web/src/assets/styles/variables.scss @@ -16,6 +16,8 @@ --lh-medium: 1.6; --lh-large: 1.7; + --ui-max-inline-size: 1024px; + --spacer-small: 0.5rem; --spacer-normal: 1rem; --spacer-medium: 1.5rem; diff --git a/web/src/components/core/Sidebar.jsx b/web/src/components/core/Sidebar.jsx index 7d8b27e856..dd1e7eee0c 100644 --- a/web/src/components/core/Sidebar.jsx +++ b/web/src/components/core/Sidebar.jsx @@ -92,8 +92,8 @@ export default function Sidebar ({ children }) {