Skip to content

Commit

Permalink
Stop access token overflowing the box (#10069)
Browse files Browse the repository at this point in the history
Use a scrollable div for the access token to stop it overflowing.
  • Loading branch information
sbjaj33 committed Feb 21, 2023
1 parent 4931f18 commit b48d568
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion res/css/views/elements/_CopyableText.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ limitations under the License.
cursor: pointer;
margin-left: 20px;
display: block;
/* If the copy button is used within a scrollable div, make it stick to the right while scrolling */
position: sticky;
right: 0;
/* center to first line */
position: relative;
top: 0.15em;
background-color: $background;

&::before {
content: "";
Expand Down
5 changes: 5 additions & 0 deletions res/css/views/settings/tabs/user/_HelpUserSettingsTab.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ limitations under the License.
margin-bottom: $spacing-16;
}
}

/* prevent the access token from overflowing the text box */
div .mx_CopyableText {
overflow: scroll;
}
}

0 comments on commit b48d568

Please sign in to comment.