mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Wrap content of JoinRoomView in a body
This commit is contained in:
parent
76e6568b87
commit
7d1d6c73ee
@ -959,7 +959,7 @@ button.link {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.UnknownRoomView {
|
.UnknownRoomView_body {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -18,18 +18,20 @@ import {TemplateView} from "../../general/TemplateView";
|
|||||||
|
|
||||||
export class UnknownRoomView extends TemplateView {
|
export class UnknownRoomView extends TemplateView {
|
||||||
render(t, vm) {
|
render(t, vm) {
|
||||||
return t.main({className: "UnknownRoomView middle"}, t.div([
|
return t.main({className: "UnknownRoomView middle"}, [
|
||||||
t.h2([
|
t.div({className: "UnknownRoomView_body centered-column"}, [
|
||||||
vm.i18n`You are currently not in ${vm.roomIdOrAlias}.`,
|
t.h2([
|
||||||
t.br(),
|
vm.i18n`You are currently not in ${vm.roomIdOrAlias}.`,
|
||||||
vm.i18n`Want to join it?`
|
t.br(),
|
||||||
]),
|
vm.i18n`Want to join it?`
|
||||||
t.button({
|
]),
|
||||||
className: "button-action primary",
|
t.button({
|
||||||
onClick: () => vm.join(),
|
className: "button-action primary",
|
||||||
disabled: vm => vm.busy,
|
onClick: () => vm.join(),
|
||||||
}, vm.i18n`Join room`),
|
disabled: vm => vm.busy,
|
||||||
t.if(vm => vm.error, t => t.p({className: "error"}, vm.error))
|
}, vm.i18n`Join room`),
|
||||||
]));
|
t.if(vm => vm.error, t => t.p({className: "error"}, vm.error))
|
||||||
|
])
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user