mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
[Backport staging] Set max size for Element logo in search warning (#11782)
Co-authored-by: Germain <germains@element.io>
This commit is contained in:
parent
b09251db69
commit
370c0e9a50
@ -72,7 +72,7 @@ export default function SearchWarning({ isRoomEncrypted, kind }: IProps): JSX.El
|
|||||||
let text: ReactNode | undefined;
|
let text: ReactNode | undefined;
|
||||||
let logo: JSX.Element | undefined;
|
let logo: JSX.Element | undefined;
|
||||||
if (desktopBuilds?.get("available")) {
|
if (desktopBuilds?.get("available")) {
|
||||||
logo = <img alt="" src={desktopBuilds.get("logo")} />;
|
logo = <img alt="" src={desktopBuilds.get("logo")} width="32px" />;
|
||||||
const buildUrl = desktopBuilds.get("url");
|
const buildUrl = desktopBuilds.get("url");
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
case WarningKind.Files:
|
case WarningKind.Files:
|
||||||
|
Loading…
Reference in New Issue
Block a user