mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-24 06:32:08 -05:00
Fix: small fixes for mobile
This commit is contained in:
parent
9c2a769bbd
commit
212d70f382
4 changed files with 16 additions and 2 deletions
|
@ -29,6 +29,11 @@ export default styled.div<Props>`
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
padding: 0 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
${ props => props.background && css`
|
${ props => props.background && css`
|
||||||
height: 120px;
|
height: 120px;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
|
|
|
@ -87,6 +87,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.list {
|
||||||
|
padding: 0 12px 12px 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//! FIXME: Move this to the Header component, do this:
|
//! FIXME: Move this to the Header component, do this:
|
||||||
// 1. Check if header has topic, if yes, flex-grow: 0 on the title.
|
// 1. Check if header has topic, if yes, flex-grow: 0 on the title.
|
||||||
// 2. If header has no topic (example: friends page), flex-grow 1 on the header title.
|
// 2. If header has no topic (example: friends page), flex-grow 1 on the header title.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import styles from "./Friend.module.scss";
|
import styles from "./Friend.module.scss";
|
||||||
import { Conversation, UserPlus } from "@styled-icons/boxicons-solid";
|
import { UserDetail, Conversation, UserPlus } from "@styled-icons/boxicons-solid";
|
||||||
|
|
||||||
import { Friend } from "./Friend";
|
import { Friend } from "./Friend";
|
||||||
import { Text } from "preact-i18n";
|
import { Text } from "preact-i18n";
|
||||||
|
@ -8,6 +8,7 @@ import Overline from "../../components/ui/Overline";
|
||||||
import IconButton from "../../components/ui/IconButton";
|
import IconButton from "../../components/ui/IconButton";
|
||||||
import { useUsers } from "../../context/revoltjs/hooks";
|
import { useUsers } from "../../context/revoltjs/hooks";
|
||||||
import { User, Users } from "revolt.js/dist/api/objects";
|
import { User, Users } from "revolt.js/dist/api/objects";
|
||||||
|
import { isTouchscreenDevice } from "../../lib/isTouchscreenDevice";
|
||||||
import { useIntermediate } from "../../context/intermediate/Intermediate";
|
import { useIntermediate } from "../../context/intermediate/Intermediate";
|
||||||
|
|
||||||
export default function Friends() {
|
export default function Friends() {
|
||||||
|
@ -31,6 +32,7 @@ export default function Friends() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Header placement="primary">
|
<Header placement="primary">
|
||||||
|
{ !isTouchscreenDevice && <UserDetail size={24} /> }
|
||||||
<div className={styles.title}>
|
<div className={styles.title}>
|
||||||
<Text id="app.navigation.tabs.friends" />
|
<Text id="app.navigation.tabs.friends" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -65,7 +65,7 @@ export function GenericSettings({ pages, switchPage, category, custom, children,
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<IconButton onClick={() => switchPage()}>
|
<IconButton onClick={() => switchPage()}>
|
||||||
<LeftArrowAlt size={24} />
|
<LeftArrowAlt size={30} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<Text
|
<Text
|
||||||
id={`app.settings.${category}.${page}.title`}
|
id={`app.settings.${category}.${page}.title`}
|
||||||
|
|
Loading…
Reference in a new issue