How can I have .column-margin figures stay within their tabset tab despite resizing window? #12157
Unanswered
AnonymousCodeToad
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hi there,
Problem
I have a .panel-tabset containing two tabs. In the first tab, I'd like to have a couple figures in the margin using .column-margin. I'm using
lightbox: true
since my intention is for readers to click the figures to enlarge them if desired.This works as intended unless the browser window is shrunken to 786px wide or less, at which point the figures end up above the entire tabset (i.e., above the all tab buttons) as if they don't belong to the selected tab at all.
Gif
Reprex
Info
Quarto 1.6.42
RStudio 2024.12.1 +563
Replicated in Firefox & Chrome
Windows 11
Ask/Context
I know responsively repositioning margin content to the main body when the window shrinks horizontally is intended behavior, so:
I'm hoping someone can help me figure out how to at least have the figures get moved below the Tab A content so they at least stay where they belong.
I thought that making sure the .{column-tabset} div was below the chunk that outputs Tab A's body content would resolve this (assumed that the responsiveness stuff honors document order of content), but no luck there.
I don't know much of anything about web design and suspect I might be missing something obvious here.
If this is a bug, I would greatly appreciate any sort of hacky CSS solutions in the meantime. I was thinking maybe disabling the margin responsiveness altogether (forcing horizontal scrolling) as a last resort, but having the repositioned margin figures stay within the tab, and ideally below the tab's main body content, would be really great if possible.
Thanks for reading my first ever post!
Beta Was this translation helpful? Give feedback.
All reactions