Fix: Add bottom navigation padding to settings.

Fix: New members joining don't show.
This commit is contained in:
Paul
2021-07-05 17:55:08 +01:00
parent 0b08dbeaad
commit 62330ddc61
9 changed files with 22 additions and 12 deletions

View File

@@ -14,8 +14,8 @@ import IconButton from "../ui/IconButton";
const NavigationBase = styled.div`
z-index: 100;
height: 50px;
display: flex;
height: var(--bottom-navigation-height);
background: var(--secondary-background);
`;

View File

@@ -150,7 +150,7 @@
height: 40px;
&.compact {
height: 50px;
height: var(--bottom-navigation-height);
> div {
gap: 20px;

View File

@@ -233,7 +233,10 @@ export function ServerMemberSidebar({
<GenericSidebarBase>
<GenericSidebarList>
<ChannelDebugInfo id={channel._id} />
<Category
<div>
{!members && <Preloader type="ring" />}
</div>
{ members && <Category
variant="uniform"
text={
<span>
@@ -241,8 +244,7 @@ export function ServerMemberSidebar({
{users.length}
</span>
}
/>
{!members && <Preloader type="ring" />}
/> }
{members && users.length === 0 && <img src={placeholderSVG} />}
{users.map(
(user) =>

View File

@@ -28,6 +28,10 @@
flex-direction: column;
justify-content: center;
}
&[data-mobile="true"] {
padding-bottom: var(--bottom-navigation-height);
}
}
.friend {

View File

@@ -121,7 +121,7 @@ export default function Friends() {
*/}
</div>
</Header>
<div className={styles.list} data-empty={isEmpty}>
<div className={styles.list} data-empty={isEmpty} data-mobile={isTouchscreenDevice}>
{isEmpty && (
<>
<img src="https://img.insrt.uk/xexu7/XOPoBUTI47.png/raw" />
@@ -210,6 +210,8 @@ export default function Friends() {
</CollapsibleSection>
);
})}
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><h1>test</h1>
</div>
</>
);

View File

@@ -41,7 +41,7 @@
}
.content {
padding: 10px 12px 50px;
padding: 10px 12px var(--bottom-navigation-height);
}
}

View File

@@ -4,4 +4,6 @@
--app-height: 100vh;
--codeblock-font: "Fira Code";
--sidebar-active: var(--secondary-background);
--bottom-navigation-height: 50px;
}