#9 "Edit this page" and language selection hidden when window width is below 1024 px
Closed 2 years ago by darknao. Opened 3 years ago by pbokoc.

When the window width of the browser displaying any of our docs is below 1024 px, the page attempts to save space by hiding the left side table of contents under a menu, and it also removes the top bar that displays your location in the site structure (e.g. "Home / Quick Docs / Fedora Quick Docs") as well as the Edit this Page link and the language selection drop-down. The location isn't really important, but the latter two are, so we should find a different way to save space on narrow screens.


Hi, I am an Outreachy Applicant and I was trying to fix this issue.

Possible solution:

This is a styling issue and I tested that from browser's developer tool. Now the problem is, we have to make changes in /public/_/css/site.css file that comes from this bundle https://asamalik.fedorapeople.org/ui-bundle.zip and this URL is mentioned in /site.yml file, which is being downloaded using docker when we run ./build.sh .
Should I add custom CSS? OR kindly provide me the repo URL of that bundle so that I can make the changes accordingly.

@aghasaad04

I think you're in the right place. This repo contains a src/css/ directory with the files used to generate the Docs site's https://docs.fedoraproject.org/en-US/_/css/site.css ­(though it's broken up into multiple source CSS files that get imported together into the final site.css).

For example, I can see the CSS that controls the visibility of the "Edit this page" link starting on line 68 of toolbar.css, here:
https://pagure.io/fedora-docs/fedora-docs-ui/blob/master/f/src/css/toolbar.css#_68

yes @ferdnyc, I have created PRs related to this.

Metadata Update from @darknao:
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata