Opened 10 years ago
Closed 10 years ago
#728 closed defect (bug) (fixed)
Syntax highlighted code blocks get bumped below Topics box
Reported by: | coffee2code | Owned by: | coffee2code |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | needs-patch ui-feedback |
Cc: |
Description
For handbook pages that contain code early in the content and have a Topics box, the Topics box causes the syntax highlighted code block to flow after/below the Topics. This leaves a big, unsightly gap in the content.
See:
- https://developer.wordpress.org/plugins/administration-menus/sub-menus/ (long, x-scrolling line of code; screenshot attached)
- https://developer.wordpress.org/plugins/administration-menus/top-level-menus/ (non x-scrolling, multi-line code block)
Ideally, the code block would fill the horizontal space available to it and automatically x-scroll if the content exceeds the available width (which is its current behavior when not running up against the Topics box).
Attachments (1)
Change History (7)
This ticket was mentioned in Slack in #meta-devhub by coffee2code. View the logs.
10 years ago
#2
follow-up:
↓ 5
@
10 years ago
Changing .syntaxhighlighter from width: 100% to max-width: 100% fixes this:
.syntaxhighlighter { max-width: 100%; }
Any reason why everything has !important
?
Screenshot of https://developer.wordpress.org/plugins/administration-menus/sub-menus/ demonstrating issue