Add title properties to settings toggles

This commit is contained in:
7w1 committed 2026-03-23 23:27:40 -05:00
1 parent 57208c9e00
commit c82384b041
1 file changed
+16 -1
+16 -1
View File
@@ -971,7 +971,12 @@ function Messages() {
title="Client Side Embeds"
description="Attempt to preview unsupported urls (e.g. YouTube) on the client, without involving the homeserver. This will expose your IP Address to third party services."
after={
<Switch variant="Primary" value={clientUrlPreview} onChange={setClientUrlPreview} />
<Switch
variant="Primary"
value={clientUrlPreview}
onChange={setClientUrlPreview}
title={clientUrlPreview ? 'Disable client-side embeds' : 'Enable client-side embeds'}
/>
}
/>
</SequenceCard>
@@ -988,6 +993,11 @@ function Messages() {
variant="Primary"
value={encClientUrlPreview}
onChange={setEncClientUrlPreview}
title={
encClientUrlPreview
? 'Disable client-side embeds in encrypted rooms'
: 'Enable client-side embeds in encrypted rooms'
}
/>
}
/>
@@ -1005,6 +1015,11 @@ function Messages() {
variant="Primary"
value={clientPreviewYoutube}
onChange={setClientPreviewYoutube}
title={
clientPreviewYoutube
? 'Disable client-side Youtube video embeds'
: 'Enable client-side Youtube video embeds'
}
/>
}
/>