-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ui] When Action output is long enough, keep a user scroll-anchored to the bottom #19452
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
ui: when an Action has long output, anchor to the latest messages | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,14 +117,30 @@ | |
} | ||
|
||
.messages { | ||
width: 100%; | ||
overflow: hidden; | ||
|
||
code > pre { | ||
height: 200px; | ||
code { | ||
background-color: #0a0a0a; | ||
color: whitesmoke; | ||
display: block; | ||
overflow: auto; | ||
height: 200px; | ||
border-radius: 6px; | ||
resize: vertical; | ||
pre { | ||
background-color: transparent; | ||
color: unset; | ||
overflow-anchor: none; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, this won't work in Safari; observed behaviour there is same as pre-PR (treats this like any other scrollable element, not "sticky") |
||
min-height: 100%; | ||
white-space: pre-wrap; | ||
} | ||
Comment on lines
+131
to
+137
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Part of this was making the scrollbars appear in the correct spot. An earlier attempt had me creating a scrollable area within the |
||
.anchor { | ||
overflow-anchor: auto; | ||
height: 1px; | ||
margin-top: -1px; | ||
visibility: hidden; | ||
} | ||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Side-effect: now you can focus in the action output and do things like
pgdn
etc.