revise user-select property
All checks were successful
/ depoly (push) Successful in 1m20s

This commit is contained in:
thislight 2024-11-18 22:41:11 +08:00
parent c363753884
commit 81325e2b22
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
5 changed files with 33 additions and 10 deletions

View file

@ -35,3 +35,7 @@ https://stackoverflow.com/questions/66005655/pwa-ios-child-of-body-not-taking-10
h1 {
margin: 0;
}
* {
user-select: none;
}

View file

@ -28,6 +28,10 @@
}
word-break: break-all;
& * {
user-select: text;
}
}
.acct-grp {
@ -49,6 +53,18 @@
.name-grp {
display: flex;
flex-flow: column nowrap;
& * {
user-select: text;
}
.display-name {
display: block;
}
.username {
user-select: all;
}
}
.acct-mark {
@ -57,9 +73,7 @@
margin-right: 0.25em;
}
.display-name {
display: block;
}
table.acct-fields {
word-break: break-all;
@ -78,6 +92,10 @@
& svg {
vertical-align: middle;
}
& * {
user-select: text;
}
}
.toot-list-toolbar {

View file

@ -424,7 +424,7 @@ const Profile: Component = () => {
aria-label="Display name"
></Body2>
</div>
<span aria-label="Complete username">{fullUsername()}</span>
<span aria-label="Complete username" class="username">{fullUsername()}</span>
</div>
<div role="presentation">
<Switch>

View file

@ -261,6 +261,8 @@ const TootBottomSheet: Component = (props) => {
style={{
"scroll-margin-top":
"calc(var(--scaffold-topbar-height) + 20px)",
"cursor": "auto",
"user-select": "auto",
}}
status={toot()!}
actionable={!!actSession()}

View file

@ -5,12 +5,7 @@
margin-block: 0;
position: relative;
contain: content;
&:not(.expanded) {
user-select: none;
cursor: pointer;
}
cursor: pointer;
&.toot {
/* fix composition ordering: I think the css module processor should aware the overriding and behaves, but no */
@ -100,6 +95,10 @@
margin-right: var(--card-pad, 0);
line-height: 1.5;
& * {
user-select: text;
}
& a {
color: var(--tutu-color-primary-d);
}