diff --git a/frontend/src/components/builds/tabs/build-config/CliBuild.tsx b/frontend/src/components/builds/tabs/build-config/CliBuild.tsx index 40872b64f..8fd9d0e45 100644 --- a/frontend/src/components/builds/tabs/build-config/CliBuild.tsx +++ b/frontend/src/components/builds/tabs/build-config/CliBuild.tsx @@ -13,6 +13,7 @@ const CliBuild: Component<{}> = (p) => {

build path:

= (p) => {

command:

= (p) => {

build path:

= (p) => {

dockerfile path:

= (p) => { -

account:

+

dockerhub account:

= (p) => {

repo:

= (p) => {

branch:

= (p) => {

github account:

= (p) => { />
- ); }; diff --git a/frontend/src/components/builds/tabs/git-config/GitConfig.tsx b/frontend/src/components/builds/tabs/git-config/GitConfig.tsx index 423c772ea..bf0d68dc4 100644 --- a/frontend/src/components/builds/tabs/git-config/GitConfig.tsx +++ b/frontend/src/components/builds/tabs/git-config/GitConfig.tsx @@ -23,7 +23,7 @@ const GitConfig: Component<{}> = (p) => {

webhook url

-
+
{listenerUrl()}
{

path:

{

command:

= (p) => {

webhook url

-
+
{listenerUrl()}
= (p) => { class="config-item shadow" justifyContent="space-between" alignItems="center" + style={{ "flex-wrap": "wrap" }} >

docker account

= (p) => { = (p) => { return (

{deployment.buildID ? "build" : "image"}

- + = (p) => { = (p) => { = (p) => {

repo:

= (p) => {

branch:

= (p) => {

github account:

= (p) => {

path:

= (p) => {

command:

= (p) => {

path:

= (p) => {

command:

= (p) => { = (p) => { )} onClick={() => { selected.set(deployment()!._id!, "deployment"); - if (width() <= 1000) { + if (width() <= 1200) { sidebar.toggle(); } }} diff --git a/frontend/src/components/topbar/Search/Search.tsx b/frontend/src/components/topbar/Search/Search.tsx index 2cb47b54a..7adcd1966 100644 --- a/frontend/src/components/topbar/Search/Search.tsx +++ b/frontend/src/components/topbar/Search/Search.tsx @@ -15,6 +15,7 @@ import { useWindowKeyDown } from "../../../util/hooks"; import Circle from "../../util/Circle"; import { ControlledTabs } from "../../util/tabs/Tabs"; import { useAppDimensions } from "../../../state/DimensionProvider"; +import Grid from "../../util/layout/Grid"; const mobileStyle: JSX.CSSProperties = { position: "fixed", @@ -33,21 +34,15 @@ export const Search: Component<{}> = (p) => { setTimeout(() => inputRef?.focus(), 200); } }); - const style = () => { - return { - "max-height": "80vh", - "padding-right": "0.5rem", - gap: "0.5rem", - ...(isMobile() ? mobileStyle : {}), - }; - }; return ( open.close(inputRef)} position="bottom right" - menuClass="scroller" - menuStyle={style()} + menuStyle={{ + gap: "0.5rem", + ...(isMobile() ? mobileStyle : {}), + }} backgroundColor={isMobile() ? "rgba(0,0,0,0.6)" : undefined} target={ void }> = (p) => { void }> = (p) => { const { selected, servers, deployments } = useAppState(); const { highlighted, filteredDeployments } = useSearchState(); return ( - <> + no results {(deployment, index) => ( @@ -158,7 +157,7 @@ const Deployments: Component<{ close: () => void }> = (p) => { )} - + ); }; @@ -166,7 +165,11 @@ const Builds: Component<{ close: () => void }> = (p) => { const { selected } = useAppState(); const { highlighted, filteredBuilds } = useSearchState(); return ( - <> + no results {(build, index) => ( @@ -186,7 +189,7 @@ const Builds: Component<{ close: () => void }> = (p) => { )} - + ); }; @@ -194,7 +197,11 @@ const Servers: Component<{ close: () => void }> = (p) => { const { selected } = useAppState(); const { highlighted, filteredServers } = useSearchState(); return ( - <> + no results {(server, index) => ( @@ -214,6 +221,6 @@ const Servers: Component<{ close: () => void }> = (p) => { )} - + ); }; diff --git a/frontend/src/components/topbar/Topbar.tsx b/frontend/src/components/topbar/Topbar.tsx index adeb8a80a..d96646353 100644 --- a/frontend/src/components/topbar/Topbar.tsx +++ b/frontend/src/components/topbar/Topbar.tsx @@ -78,6 +78,7 @@ const Topbar: Component = () => { } content={} position="bottom right" + backgroundColor={isMobile() ? "rgba(0,0,0,0.6)" : undefined} /> = () => { const { isMobile } = useAppDimensions(); return ( - -
+

updates -

+ {(update) => } diff --git a/frontend/src/components/topbar/topbar.module.scss b/frontend/src/components/topbar/topbar.module.scss index 1597eefc4..e3ee00d9c 100644 --- a/frontend/src/components/topbar/topbar.module.scss +++ b/frontend/src/components/topbar/topbar.module.scss @@ -31,6 +31,7 @@ .Updates { width: 340px; z-index: 25; + padding-bottom: 1rem; } .UpdatesContainer { diff --git a/frontend/src/state/DimensionProvider.tsx b/frontend/src/state/DimensionProvider.tsx index e5902edc3..1d9ef0b7b 100644 --- a/frontend/src/state/DimensionProvider.tsx +++ b/frontend/src/state/DimensionProvider.tsx @@ -15,7 +15,7 @@ export const DimensionProvider: Component = (p) => { const context = { width, height, - isMobile: () => width() <= 500, + isMobile: () => width() <= 700, }; return ( diff --git a/frontend/src/state/StateProvider.tsx b/frontend/src/state/StateProvider.tsx index 7ba0f15fb..d73162156 100644 --- a/frontend/src/state/StateProvider.tsx +++ b/frontend/src/state/StateProvider.tsx @@ -75,7 +75,7 @@ export const AppStateProvider: Component<{}> = (p) => { onCleanup(ws.subscribe([USER_UPDATE], reloadUser)); const resizeListener = () => { - if (width() < 1000 && sidebarOpen()) { + if (width() < 1200 && sidebarOpen()) { toggleSidebarOpen(); } }; diff --git a/frontend/src/style/app.scss b/frontend/src/style/app.scss index 469f20137..5443c62c2 100644 --- a/frontend/src/style/app.scss +++ b/frontend/src/style/app.scss @@ -78,12 +78,14 @@ } .config-item { - width: 60vw; - max-width: 30rem; + width: 400px; + max-width: calc(100vw - 2rem); + flex-wrap: wrap; background-color: c.$lightgrey; box-sizing: border-box; padding: 0.5rem; height: fit-content; + box-sizing: border-box; } .selected {