mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
Overhaul app responsiveness
We introduce more breakpoints to cover mobile, small-desktop, medium-desktop and large-desktop viewports.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
height: 100%;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
@media (max-width: 719.98px) {
|
||||
.app {
|
||||
display: grid;
|
||||
grid-template-rows: 1fr auto;
|
||||
@@ -30,17 +30,17 @@
|
||||
</style>
|
||||
|
||||
<div class="app">
|
||||
<div class="global-hide-on-mobile header">
|
||||
<div class="global-hide-on-mobile-down header">
|
||||
<Header />
|
||||
</div>
|
||||
<div class="content">
|
||||
<slot />
|
||||
</div>
|
||||
<div style:margin-top="auto">
|
||||
<div class="global-hide-on-mobile">
|
||||
<div class="global-hide-on-mobile-down">
|
||||
<Footer />
|
||||
</div>
|
||||
<div class="global-hide-on-desktop">
|
||||
<div class="global-hide-on-small-desktop-up">
|
||||
<MobileFooter />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
<div class="footer">
|
||||
<div class="left">
|
||||
<Popover popoverPositionBottom="2rem" popoverPositionLeft="0">
|
||||
<Popover popoverPositionBottom="3rem" popoverPositionLeft="0">
|
||||
<IconButton slot="toggle" let:toggle on:click={toggle}>
|
||||
<IconSmall name="settings" />
|
||||
Settings
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
</style>
|
||||
|
||||
{#if $httpdStore.state === "authenticated"}
|
||||
<Popover popoverPositionTop="3rem" popoverPositionRight="0">
|
||||
<Popover popoverPositionTop="2.5rem" popoverPositionRight="0">
|
||||
<Button slot="toggle" let:toggle on:click={toggle} variant="naked-toggle">
|
||||
<div class="peer-info">
|
||||
<div style:height="1.25rem" style:margin-right="0.5rem">
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
font-weight: var(--font-weight-semibold);
|
||||
font-size: var(--font-size-small);
|
||||
white-space: nowrap;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<Popover popoverPositionTop="3rem" popoverPositionRight="0">
|
||||
<Popover popoverPositionTop="2.5rem" popoverPositionRight="0">
|
||||
<Button slot="toggle" let:toggle on:click={toggle} variant={"naked-toggle"}>
|
||||
{#if node.state === "running"}
|
||||
<IconSmall name="online" />
|
||||
|
||||
+2
-2
@@ -7,9 +7,7 @@
|
||||
|
||||
<style>
|
||||
.help {
|
||||
width: 18.5rem;
|
||||
font-size: var(--font-size-small);
|
||||
color: var(--color-foreground-dim);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
@@ -18,6 +16,8 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
gap: 2rem;
|
||||
}
|
||||
.divider {
|
||||
border-bottom: 1px solid var(--color-fill-separator);
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
<style>
|
||||
.settings {
|
||||
width: 24rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@@ -28,6 +27,8 @@
|
||||
display: flex;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
gap: 2rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.right {
|
||||
@@ -78,7 +79,7 @@
|
||||
</Radio>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="item global-hide-on-mobile-down">
|
||||
<div
|
||||
style="display: flex; flex-direction: row; align-items: center; gap: 0.5rem;">
|
||||
Make changes on the web (experimental)
|
||||
|
||||
Reference in New Issue
Block a user