From 11f04fbc142f2b0f3e3f8ba065c02dc86351486a Mon Sep 17 00:00:00 2001 From: Paulo Pinto Date: Tue, 13 Dec 2022 17:36:28 +0000 Subject: [PATCH] Add a top-level class to JoinRoomView --- src/platform/web/ui/css/themes/element/theme.css | 2 +- src/platform/web/ui/session/JoinRoomView.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/platform/web/ui/css/themes/element/theme.css b/src/platform/web/ui/css/themes/element/theme.css index ad387297..a5d5f1fb 100644 --- a/src/platform/web/ui/css/themes/element/theme.css +++ b/src/platform/web/ui/css/themes/element/theme.css @@ -1180,7 +1180,7 @@ button.RoomDetailsView_row::after { gap: 12px; } -.CreateRoomView_body, .JoinRoomView, .RoomBeingCreated_error { +.CreateRoomView_body, .JoinRoomView_body, .RoomBeingCreated_error { max-width: 400px; } diff --git a/src/platform/web/ui/session/JoinRoomView.ts b/src/platform/web/ui/session/JoinRoomView.ts index 90194317..c26cc34e 100644 --- a/src/platform/web/ui/session/JoinRoomView.ts +++ b/src/platform/web/ui/session/JoinRoomView.ts @@ -27,8 +27,8 @@ export class JoinRoomView extends TemplateView { placeholder: vm.i18n`Enter a room id or alias`, disabled: vm => vm.joinInProgress, }); - return t.main({className: "middle"}, - t.div({className: "JoinRoomView centered-column"}, [ + return t.main({className: "JoinRoomView middle"}, + t.div({className: "JoinRoomView_body centered-column"}, [ t.h2("Join room"), t.form({className: "JoinRoomView_detailsForm form", onSubmit: evt => this.onSubmit(evt, input.value)}, [ t.div({className: "vertical-layout"}, [ @@ -60,4 +60,3 @@ export class JoinRoomView extends TemplateView { this.value.join(id); } } -