nprapps / elections24-primaries

2024 primary/caucus election results
https://apps.npr.org/primary-election-results-2024/
Other
5 stars 1 forks source link

When only one Senate result is shown, the table should stretch to 100% width #156

Closed alykat closed 4 months ago

alykat commented 6 months ago

Noted by @hilaryfung. We fixed this for House results (https://github.com/nprapps/elections24-primaries/issues/131) but it's still an issue for Senate. Example from the Ohio Senate GOP primary:

image

Looking at the markup / css, though, the solution doesn't seem as straightforward.

abidishajia commented 5 months ago

I was looking at this bug here but can't seem to reproduce it. Has this been fixed?

alykat commented 5 months ago

Not fixed. As a quick-fix in the moment, I applied some inline css to a div wrapping the embed to force it to a width that would bring it to a smaller breakpoint where result tables would be stacked:

image