fix(sidebar): added new settings button

This commit is contained in:
trashtemp 2022-01-13 19:50:15 +01:00
parent 8a1f20615e
commit 6c244d2ae7
No known key found for this signature in database
GPG key ID: D1F0DB65081B0FC6

View file

@ -182,6 +182,7 @@ const ServerCircle = styled.div`
height: 42px;
width: 42px;
transition: background-color 0.1s ease-in;
cursor: pointer;
> div svg {
color: var(--accent);
@ -426,20 +427,24 @@ export default observer(() => {
</ServerCircle>
)}
</ServerList>
<PaintCounter small />
{!isTouchscreenDevice && (
<SettingsButton>
<Tooltip content={"Settings"} placement="right">
<ServerCircle>
<Link to="/settings">
<Tooltip
content={<Text id="app.settings.title" />}
placement="right">
<div className="circle">
<IconButton>
<Cog size={32} strokeWidth="0.5" />
<Cog
size={24}
fill="var(--secondary-foreground) !important"
/>
</IconButton>
</Tooltip>
</div>
</Link>
</SettingsButton>
</ServerCircle>
</Tooltip>
)}
<PaintCounter small />
</ServersBase>
);
});