Display settings: new setting "width"

width = boxed (default, content width is constrained)
width = unlimited (content width is unlimited for higher resolutions)

This should stop the complaints about dashboard not displaying three columns on wide screens.
This commit is contained in:
bergware
2023-11-05 11:02:32 +01:00
parent abc4ef1c80
commit 78c704beba
7 changed files with 19 additions and 12 deletions

View File

@@ -49,6 +49,15 @@ function annotate($text) {echo "\n<!--\n",str_repeat("#",strlen($text)),"\n$text
<link type="text/css" rel="stylesheet" href="<?autov("/webGui/styles/defaultpagelayout.css")?>">
<style>
<?if (empty($display['width'])):?>
@media (max-width:1280px){#template{min-width:1260px;max-width:1260px;margin:0}}
@media (min-width:1281px){#template{min-width:1260px;margin:0 10px}}
@media (min-width:1921px){#template{min-width:1260px;max-width:1920px;margin:0 auto}}
<?else:?>
@media (max-width:1280px){#template{margin:0}}
@media (min-width:1281px){#template{margin:0 10px}}
@media (min-width:1921px){#template{margin:0 <?=$themes1?'20px':'auto'?>}
<?endif;?>
<?if ($display['font']):?>
html{font-size:<?=$display['font']?>%}
<?endif;?>