Add additional configuration options to Banner module (#34384)

* Add additional configuration options to Banner module

* Iterate

* Iterate
This commit is contained in:
Michael Telatynski
2026-07-28 14:18:50 +00:00
committed by GitHub
parent 3d8a80271e
commit dfa6a58073
9 changed files with 94 additions and 25 deletions
+2 -3
View File
@@ -5,14 +5,13 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE files in the repository root for full details.
*/
import compound from "@vector-im/compound-web/dist/style.css" with { type: "css" };
import type { Module, Api, ModuleFactory } from "@element-hq/element-web-module-api";
import Translations from "./translations.json";
import { ModuleConfig, CONFIG_KEY } from "./config";
import { name as ModuleName } from "../package.json";
import RoomPreviewBar from "./RoomPreviewBar.tsx";
import AuthFooter from "./AuthFooter.tsx";
import style from "./style.css" with { type: "css" };
const GUEST_INVISIBLE_COMPONENTS = [
"UIComponent.sendInvites",
@@ -37,7 +36,7 @@ class RestrictedGuestsModule implements Module {
return;
}
document.adoptedStyleSheets.push(compound);
document.adoptedStyleSheets.push(style);
this.api.i18n.register(Translations);
+8
View File
@@ -0,0 +1,8 @@
/*
Copyright 2026 Element Creations Ltd.
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE files in the repository root for full details.
*/
@import "@vector-im/compound-web/dist/style.css" layer(compound-layer);