mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 17:11:17 -08:00
Merge pull request #157 from SableClient/fix/scope-underline-links
fix: underline links from being applied everywhere
This commit is contained in:
5 files changed
+13
-3
No files matched your search
@@ -29,7 +29,7 @@ export const RoomTopicViewer = as<
|
||||
<Icon src={Icons.Cross} />
|
||||
</IconButton>
|
||||
</Header>
|
||||
<Scroll className={css.ModalScroll} size="300" hideTrack>
|
||||
<Scroll data-room-topic className={css.ModalScroll} size="300" hideTrack>
|
||||
<Box className={css.ModalContent} direction="Column" gap="100">
|
||||
<Text size="T300" className={css.ModalTopic} priority="400">
|
||||
<Linkify options={LINKIFY_OPTS}>{scaleSystemEmoji(topic)}</Linkify>
|
||||
|
||||
@@ -180,6 +180,7 @@ function UserExtendedSection({
|
||||
|
||||
{bioContent && (
|
||||
<Scroll
|
||||
data-profile-bio
|
||||
direction="Vertical"
|
||||
variant="SurfaceVariant"
|
||||
visibility="Always"
|
||||
|
||||
@@ -305,7 +305,7 @@ function ThemeSettings() {
|
||||
<SequenceCard className={SequenceCardStyle} variant="SurfaceVariant" direction="Column">
|
||||
<SettingTile
|
||||
title="Underline Links"
|
||||
description="Always show underlines on links in chat."
|
||||
description="Always show underlines on links in chat, bios and room descriptions."
|
||||
after={<Switch variant="Primary" value={underlineLinks} onChange={setUnderlineLinks} />}
|
||||
/>
|
||||
</SequenceCard>
|
||||
|
||||
+3
-1
@@ -177,7 +177,9 @@ pre {
|
||||
|
||||
/* Accessibility Overrides :D */
|
||||
|
||||
.force-underline-links a {
|
||||
.force-underline-links [data-message-id] a:not([data-mention-id]),
|
||||
.force-underline-links [data-profile-bio] a,
|
||||
.force-underline-links [data-room-topic] a {
|
||||
text-decoration: underline !important;
|
||||
text-decoration-thickness: 1px;
|
||||
text-underline-offset: 2px;
|
||||
|
||||
Reference in new issue
Block a user