Skip to content

Commit

Permalink
Scroll the user script detail section.
Browse files Browse the repository at this point in the history
If it's taller than the dialog, e.g. in case of long description.

Fixes greasemonkey#2927
  • Loading branch information
arantius committed May 2, 2018
1 parent 585edce commit 52b560c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/browser/monkey-menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ hr {

section {
margin-left: 0;
overflow-x: hidden;
overflow-y: auto;
transition-duration: 0.15s;
transition-property: margin-left;
width: 100vw;
Expand Down Expand Up @@ -131,3 +129,14 @@ section.user-script p {
margin: 0;
padding: 4px 12px 4px 10px;
}


/* Scroll the content of the script detail section, in case it's too tall. */
section.user-script {
display: flex;
height: 100vh;
flex-direction: column;
}
section.user-script menu {
overflow-y: auto;
}

0 comments on commit 52b560c

Please sign in to comment.