issues
search
AgregoreWeb
/
agregore-browser
A minimal browser for the distributed web (Desktop version)
https://www.youtube.com/watch?v=TnYKvOQB0ts&list=PL7sG5SCUNyeYx8wnfMOUpsh7rM_g0w_cu&index=14
GNU Affero General Public License v3.0
715
stars
66
forks
source link
Get default width from css media queries
#260
Open
RangerMauve
opened
4 months ago
RangerMauve
commented
4 months ago
inside windows.js before we invoke
.show
invoke js in the page that does the following:
list through all the stylesheets
find css rules for media query breakpoints
find css rules for max-width on the body or html
find the smallest referenced width that's less than whatever the default window width is
set the window width to that
then show
if no widths are found use the default
This shouldn't be done if the width is know from the constructor options
.show