Closed rempsyc closed 7 months ago
From a first investigation, it seems that the above trick can fix the box scrolling but then messes up the upper boxes, which I will need to find a fix for
When using boxes, I could fix the html title take-home message at the center of the box using custom css:
But now that we use scrolling, this strategy isn't working anymore:
I don't know how to place the HTML text correctly and dynamically for each screen if we remove the boxes
I don't know if that would work but one workaround could involve taking a screenshot of the take-home message as it is now and then trying to use this image to place it better than using custom css and html
Alright, so I was able to (thanks chatGPT) to fix the css code to enable to keep the take-home message centered horizontally and vertically in its own box even when using vertical_layout: scroll
.
However, one last annoying problem is that for some reason when the page loads it defaults to scrolling down just enough to hide the title of the gauge box so people will surely miss it :/
The other problem is that vertical_layout: scroll
messes up the row height of all the other pages, which usually automatically and dynamically stretched to the size of the screen, e.g.,
Continuation of #41
I also don't love it... but the
flexdashboard
interface isn't so flexible. What I don't like in particular is that it tends to look good on large screen where you don't actually have to scroll for each boxes, but on small screens it looks awful :( Don't know how to fix this at this point. It would probably require looking again at the documentation at: https://pkgs.rstudio.com/flexdashboard/articles/using.html#scrolling-layout. Possibly relevant: