mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 01:29:54 -06:00
Display settings: new setting "width"
This commit is contained in:
@@ -49,15 +49,9 @@ 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){#displaybox{min-width:1260px;max-width:1260px;margin:0}}
|
||||
@media (max-width:1280px){#displaybox{min-width:1260px;margin:0}}
|
||||
@media (min-width:1281px){#displaybox{min-width:1260px;margin:0 <?=$themes1?'10px':'auto'?>}}
|
||||
@media (min-width:1921px){#displaybox{min-width:1260px;max-width:1920px;margin:0 auto}}
|
||||
<?else:?>
|
||||
@media (max-width:1280px){#displaybox{margin:0}}
|
||||
@media (min-width:1281px){#displaybox{margin:0 <?=$themes1?'10px':'auto'?>}}
|
||||
@media (min-width:1921px){#displaybox{margin:0 <?=$themes1?'20px':'auto'?>}
|
||||
<?endif;?>
|
||||
@media (min-width:1921px){#displaybox{min-width:1260px;<?=empty($display['width'])?'max-width:1920px;':''?>margin:0 <?=$themes1?'20px':'auto'?>}}
|
||||
<?if ($display['font']):?>
|
||||
html{font-size:<?=$display['font']?>%}
|
||||
<?endif;?>
|
||||
|
||||
Reference in New Issue
Block a user