fix(settings): more settings fixes pt. 2

This commit is contained in:
trashtemp 2021-12-24 18:36:40 +01:00
parent af3eb754f7
commit 18f7f91ff0
No known key found for this signature in database
GPG key ID: D1F0DB65081B0FC6
4 changed files with 7 additions and 31 deletions

View file

@ -25,7 +25,7 @@ export const Bar = styled.div<{ position: "top" | "bottom"; accent?: boolean }>`
display: flex; display: flex;
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
font-size: 13px; font-size: 12px;
padding: 0 8px; padding: 0 8px;
user-select: none; user-select: none;
justify-content: space-between; justify-content: space-between;
@ -89,7 +89,7 @@ export default observer(({ channel }: { channel: Channel }) => {
</div> </div>
<div> <div>
<Text id="app.main.channel.misc.jump_present" />{" "} <Text id="app.main.channel.misc.jump_present" />{" "}
<DownArrowAlt size={20} /> <DownArrowAlt size={18} />
</div> </div>
</div> </div>
</Bar> </Bar>

View file

@ -56,7 +56,7 @@ const Container = styled.div`
} }
h4 { h4 {
text-transform: unset; text-transform: unset !important;
a { a {
opacity: 0.7; opacity: 0.7;

View file

@ -131,12 +131,11 @@
display: grid; display: grid;
place-items: center; place-items: center;
grid-template-columns: minmax(auto, 100%); grid-template-columns: minmax(auto, 100%);
padding: 20px;
margin-bottom: 30px;
> div { > div {
width: 100%; width: 100%;
max-width: 560px; max-width: 560px;
transform: scale(0.9);
} }
} }
@ -369,6 +368,7 @@
display: flex; display: flex;
margin: 10px 0; margin: 10px 0;
flex-direction: column; flex-direction: column;
overflow: hidden;
border-radius: var(--border-radius); border-radius: var(--border-radius);
background: var(--secondary-header); background: var(--secondary-header);
@ -452,7 +452,7 @@
.session { .session {
align-items: unset; align-items: unset;
flex-direction: column; flex-direction: column;
gap: 20px; gap: 16px;
> button { > button {
width: 100%; width: 100%;

View file

@ -208,31 +208,7 @@ export function Sessions() {
</div> </div>
); );
})} })}
{/*<Button <hr />
error
onClick={async () => {
// ! FIXME: add to rAuth
const del: string[] = [];
render.forEach((session) => {
if (deviceId !== session._id) {
del.push(session._id);
}
});
setDelete(del);
for (const id of del) {
await client.req(
"DELETE",
`/auth/session/${id}` as "/auth/session/id",
);
}
setSessions(sessions.filter((x) => x._id === deviceId));
}}>
<Text id="app.settings.pages.sessions.logout" />
</Button>*/}
<CategoryButton <CategoryButton
onClick={async () => { onClick={async () => {
// ! FIXME: add to rAuth // ! FIXME: add to rAuth