mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Center UnknownRoomView content vertically
This commit is contained in:
parent
023b36575f
commit
dcd514a484
@ -959,9 +959,16 @@ button.link {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.UnknownRoomView_body {
|
.UnknownRoomView_container {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.UnknownRoomView_body {
|
||||||
|
height: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
@ -24,6 +24,7 @@ export class UnknownRoomView extends TemplateView {
|
|||||||
t.h2("Join room"),
|
t.h2("Join room"),
|
||||||
]),
|
]),
|
||||||
t.div({className: "UnknownRoomView_body centered-column"}, [
|
t.div({className: "UnknownRoomView_body centered-column"}, [
|
||||||
|
t.div({className: "UnknownRoomView_container"}, [
|
||||||
t.h2([
|
t.h2([
|
||||||
vm.i18n`You are currently not in ${vm.roomIdOrAlias}.`,
|
vm.i18n`You are currently not in ${vm.roomIdOrAlias}.`,
|
||||||
t.br(),
|
t.br(),
|
||||||
@ -36,6 +37,7 @@ export class UnknownRoomView extends TemplateView {
|
|||||||
}, vm.i18n`Join room`),
|
}, vm.i18n`Join room`),
|
||||||
t.if(vm => vm.error, t => t.p({className: "error"}, vm.error))
|
t.if(vm => vm.error, t => t.p({className: "error"}, vm.error))
|
||||||
])
|
])
|
||||||
|
])
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user