Fixed sessions tab for mobile devices

This commit is contained in:
nizune 2021-07-07 22:15:52 +02:00
parent ce67c5acdb
commit 0f0c6cfbae
2 changed files with 44 additions and 21 deletions

View file

@ -312,6 +312,22 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 12px; gap: 12px;
flex-direction: row;
.flextest {
display: flex;
gap: 12px;
flex-grow: 1;
}
@media only screen and (max-width: 900px) {
align-items: unset;
flex-direction: column;
> button {
width: 100%;
}
}
} }
.entry { .entry {

View file

@ -128,6 +128,7 @@ export function Sessions() {
</span> </span>
)} )}
<div className={styles.session}> <div className={styles.session}>
<div className={styles.flextest}>
<div className={styles.icon}> <div className={styles.icon}>
{getIcon(session)} {getIcon(session)}
<div>{getSystemIcon(session)}</div> <div>{getSystemIcon(session)}</div>
@ -149,7 +150,12 @@ export function Sessions() {
}} }}
/> />
</span> </span>
</div> </div>
</div>
{deviceId !== session.id && ( {deviceId !== session.id && (
<Button <Button
onClick={async () => { onClick={async () => {
@ -173,6 +179,7 @@ export function Sessions() {
<Text id="app.settings.pages.logOut" /> <Text id="app.settings.pages.logOut" />
</Button> </Button>
)} )}
</div> </div>
</div> </div>
))} ))}