Merge pull request #1980 from matrix-org/t3chguy/fix_copy-code-block_hscroll

affix copyButton so that it doesn't get scrolled horizontally
pull/21833/head
David Baker 2018-06-18 11:23:48 +01:00 committed by GitHub
commit d1982c8317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -392,6 +392,7 @@ limitations under the License.
overflow-x: overlay; overflow-x: overlay;
overflow-y: visible; overflow-y: visible;
max-height: 30vh; max-height: 30vh;
position: static;
} }
.mx_EventTile_content .markdown-body code { .mx_EventTile_content .markdown-body code {
@ -406,7 +407,7 @@ limitations under the License.
visibility: hidden; visibility: hidden;
cursor: pointer; cursor: pointer;
top: 6px; top: 6px;
right: 6px; right: 36px;
width: 19px; width: 19px;
height: 19px; height: 19px;
background-image: url($copy-button-url); background-image: url($copy-button-url);