mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 11:05:03 +01:00
Don't add middile class if in room
This commit is contained in:
parent
eeceb9e6a0
commit
ae7f13c7e3
@ -180,4 +180,8 @@ export class DeviceVerificationViewModel extends ErrorReportViewModel<SegmentTyp
|
||||
get type(): string {
|
||||
return "verification";
|
||||
}
|
||||
|
||||
get isHappeningInRoom(): boolean {
|
||||
return !!this.navigation.path.get("room");
|
||||
}
|
||||
}
|
||||
|
@ -24,10 +24,10 @@ import {VerificationCompleteView} from "./stages/VerificationCompleteView";
|
||||
import {MissingKeysView} from "./stages/MissingKeysView";
|
||||
|
||||
export class DeviceVerificationView extends TemplateView<DeviceVerificationViewModel> {
|
||||
render(t: Builder<DeviceVerificationViewModel>) {
|
||||
render(t: Builder<DeviceVerificationViewModel>, vm: DeviceVerificationViewModel) {
|
||||
return t.div({
|
||||
className: {
|
||||
"middle": true,
|
||||
"middle": !vm.isHappeningInRoom,
|
||||
"DeviceVerificationView": true,
|
||||
}
|
||||
}, [
|
||||
|
Loading…
Reference in New Issue
Block a user