mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 08:38:37 +00:00
Fix: Add bottom navigation padding to settings.
Fix: New members joining don't show.
This commit is contained in:
@@ -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);
|
||||
`;
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@
|
||||
height: 40px;
|
||||
|
||||
&.compact {
|
||||
height: 50px;
|
||||
height: var(--bottom-navigation-height);
|
||||
|
||||
> div {
|
||||
gap: 20px;
|
||||
|
||||
@@ -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) =>
|
||||
|
||||
@@ -28,6 +28,10 @@
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
&[data-mobile="true"] {
|
||||
padding-bottom: var(--bottom-navigation-height);
|
||||
}
|
||||
}
|
||||
|
||||
.friend {
|
||||
|
||||
@@ -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>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 10px 12px 50px;
|
||||
padding: 10px 12px var(--bottom-navigation-height);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,4 +4,6 @@
|
||||
--app-height: 100vh;
|
||||
--codeblock-font: "Fira Code";
|
||||
--sidebar-active: var(--secondary-background);
|
||||
|
||||
--bottom-navigation-height: 50px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user