Git Product home page Git Product logo

Comments (6)

michaelopdenacker avatar michaelopdenacker commented on June 10, 2024

@tleb suggested to remove this from http/banner.css:

header.header {
position: relative !important;
}

However, it doesn't work for me, unless I zoom out several times.

from elixir.

tleb avatar tleb commented on June 10, 2024

Good URL to reproduce the issue: https://elixir.bootlin.com/linux/v2.6.20.7/source/arch/arm26/ACKNOWLEDGEMENTS

Cannot reproduce on the official instance now that the line in comment #276 (comment) is removed. Both Firefox and Chromium.

I believe the issue is wider than that. Eg see the sidebar that scroll once a viewport width is passed. A proper solution would be to rearrange the HTML. Currently when we scroll horizontally everything is scrolling. We therefore have to make sticky everything that shouldn't scroll (ie everything but the code block).

A better solution would be to make only the code block overflow and handle scrolling at that level. That way there is no issue with the positions of all other blocks in the page.

sidebar dissapearing by scrolling left
Sidebar issue. It starts scrolling once we scrolled more than one horizontal viewport.

from elixir.

michaelopdenacker avatar michaelopdenacker commented on June 10, 2024

Thanks for your investigations! By the way, I reverted the change you suggested on https://elixir.bootlin.com, as it wasn't working for a few of us.

from elixir.

fstachura avatar fstachura commented on June 10, 2024

Another case: https://elixir.bootlin.com/linux/latest/source/Documentation/networking/tls-offload-reorder-bad.svg

This happens, because the main element that contains the sidebar and the code is less wide than the longest line of the code (div with the code overflows). The horizontal scrollbar scrolls the whole document, and when the main element is scrolled out of the viewport, it also takes away the sidebar, because the sidebar is contained within.

Screenshot_20240309_115430
Screenshot_20240309_115440

A quick solution is to make sure that the main element is as wide as the code, and this can be done by setting the width property of the main element to max-content.

A proper solution would be to rearrange the HTML. Currently when we scroll horizontally everything is scrolling. We therefore have to make sticky everything that shouldn't scroll (ie everything but the code block).

I agree. Is the horizontal scrollbar supposed to be as wide as the viewport?

from elixir.

tleb avatar tleb commented on June 10, 2024

A quick solution is to make sure that the main element is as wide as the code, and this can be done by setting the width property of the main element to max-content.

I do not think we need to consider a quick and dirty solution. It has been this way since forever. It would take time to develop and test a half-baked solution when we know what the proper should be.

[...] Is the horizontal scrollbar supposed to be as wide as the viewport?

I do not believe it makes sense. We are scrolling file content; scrollbar should be reflecting that.

from elixir.

michaelopdenacker avatar michaelopdenacker commented on June 10, 2024

In the meantime, I merged @fstachura 's solution:
a1bff7a

from elixir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.