Refreshed languages menu in settings

This commit is contained in:
nizune
2021-08-03 11:51:40 +02:00
parent 97399211bb
commit 52b31d21e4
4 changed files with 35 additions and 9 deletions

View File

@@ -77,7 +77,7 @@ const ServerList = styled.div`
display: flex;
overflow-y: scroll;
padding-bottom: 20px;
width: 58px;
/*width: 58px;*/
flex-direction: column;
scrollbar-width: none;
@@ -89,6 +89,11 @@ const ServerList = styled.div`
&::-webkit-scrollbar {
width: 0px;
}
/*${isTouchscreenDevice &&
css`
width: 58px;
`}*/
`;
const ServerEntry = styled.div<{ active: boolean; home?: boolean }>`

View File

@@ -1,6 +1,6 @@
import { observer } from "mobx-react-lite";
import { Redirect, useParams } from "react-router";
import styled from "styled-components";
import styled, { css } from "styled-components";
import { attachContextMenu } from "preact-context-menu";
import { useEffect } from "preact/hooks";
@@ -11,6 +11,7 @@ import PaintCounter from "../../../lib/PaintCounter";
import { dispatch } from "../../../redux";
import { connectState } from "../../../redux/connector";
import { Unreads } from "../../../redux/reducers/unreads";
import { isTouchscreenDevice } from "../../../lib/isTouchscreenDevice";
import { useClient } from "../../../context/revoltjs/RevoltClient";
@@ -37,6 +38,13 @@ const ServerBase = styled.div`
border-start-start-radius: 8px;
border-end-start-radius: 8px;
overflow: hidden;
${isTouchscreenDevice &&
css`
padding-bottom: 50px;
border-end-start-radius: 0;
`}
`;
const ServerList = styled.div`