Obojobo icon indicating copy to clipboard operation
Obojobo copied to clipboard

YouTube videos have extra margins in question feedback and explanation sections.

Open FrenjaminBanklin opened this issue 2 years ago • 0 comments

YouTube chunks have extra right-side margins that are pushing the videos to the left, which makes them flow outside their parent containers.

Examples: Extra YouTube chunk margins in a question's feedback section: Screen Shot 2022-09-21 at 9 44 56 AM

Extra YouTube chunk margins in a question's explanation section: Screen Shot 2022-09-21 at 9 45 06 AM

It looks like the extra margins on YouTube chunks are an (probably) unintended consequence of the classes being applied to those chunks. Specifically the .obojobo-draft--chunks--question .solution .solution-container > div > .component[data-obo-component='true'] rule is applying margins on the left and right side.

Should be easy enough to adjust the specificity of this rule to omit YouTube chunks somehow.

FrenjaminBanklin avatar Sep 21 '22 13:09 FrenjaminBanklin