client: improved mobile stylings

This commit is contained in:
Max Leiter 2022-03-09 01:50:55 -08:00
parent 4ca525fb12
commit d8447f759d
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA
5 changed files with 17 additions and 15 deletions

View file

@ -55,7 +55,7 @@ const Document = ({ remove, editable, title, content, setTitle, setContent, init
disabled={!editable} disabled={!editable}
width={"100%"} width={"100%"}
/> />
{remove && editable && <Button type="error" ghost icon={<Trash />} auto height={'36px'} width={'36px'} onClick={() => removeFile(remove)} />} {remove && editable && <Button type="abort" ghost icon={<Trash />} auto height={'36px'} width={'36px'} onClick={() => removeFile(remove)} />}
</div> </div>
<div className={styles.descriptionContainer}> <div className={styles.descriptionContainer}>
{tab === 'edit' && editable && <FormattingIcons setText={setContent} textareaRef={codeEditorRef} />} {tab === 'edit' && editable && <FormattingIcons setText={setContent} textareaRef={codeEditorRef} />}

View file

@ -30,10 +30,10 @@
} }
} }
.controls { .controls button:active,
flex: 1 1; .controls button:focus,
display: flex; .controls button:hover {
align-items: center; outline: 1px solid rgba(0, 0, 0, 0.2);
} }
.wrapper { .wrapper {

View file

@ -121,8 +121,10 @@ const Header = ({ changeTheme, theme }: DriftProps) => {
<Button <Button
auto auto
type="abort" type="abort"
onClick={() => setExpanded(!expanded)}> onClick={() => setExpanded(!expanded)}
<MenuIcon size="1.125rem" /> >
<Spacer height={5 / 6} width={0} />
<MenuIcon size="1.5rem" />
</Button> </Button>
</div> </div>
{isMobile && expanded && (<div className={styles.mobile}> {isMobile && expanded && (<div className={styles.mobile}>

View file

@ -10,12 +10,12 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between;
} }
.title > div { @media screen and (max-width: 650px) {
flex-grow: 1; .title {
} align-items: flex-start;
flex-direction: column;
.mygist { }
flex-grow: 0.4;
} }

View file

@ -17,8 +17,8 @@ type props = {
const Title = ({ setTitle, title }: props) => { const Title = ({ setTitle, title }: props) => {
return (<div className={styles.title}> return (<div className={styles.title}>
<Text h1 width={"150px"} className={styles.drift}>Drift &mdash;</Text> <Text h1 width={"150px"} className={styles.drift}>Drift</Text>
<ShiftBy y={-6}> <ShiftBy y={-3}>
<Input <Input
placeholder={titlePlaceholders[Math.floor(Math.random() * titlePlaceholders.length)]} placeholder={titlePlaceholders[Math.floor(Math.random() * titlePlaceholders.length)]}
value={title || ""} value={title || ""}