Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit b48d568

Browse files
authored
Stop access token overflowing the box (#10069)
Use a scrollable div for the access token to stop it overflowing.
1 parent 4931f18 commit b48d568

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

res/css/views/elements/_CopyableText.pcss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ limitations under the License.
3838
cursor: pointer;
3939
margin-left: 20px;
4040
display: block;
41+
/* If the copy button is used within a scrollable div, make it stick to the right while scrolling */
42+
position: sticky;
43+
right: 0;
4144
/* center to first line */
42-
position: relative;
4345
top: 0.15em;
46+
background-color: $background;
4447

4548
&::before {
4649
content: "";

res/css/views/settings/tabs/user/_HelpUserSettingsTab.pcss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,9 @@ limitations under the License.
2828
margin-bottom: $spacing-16;
2929
}
3030
}
31+
32+
/* prevent the access token from overflowing the text box */
33+
div .mx_CopyableText {
34+
overflow: scroll;
35+
}
3136
}

0 commit comments

Comments
 (0)