Fixed auto resize icons to 48px in plugins page

This commit is contained in:
bergware
2017-06-22 10:52:56 +02:00
parent b60caad851
commit 5892a58793
5 changed files with 6 additions and 2 deletions

View File

@@ -56,9 +56,9 @@ foreach (glob("/var/log/plugins/*.plg",GLOB_NOSORT) as $plugin_link) {
//link/icon
$icon = icon($name);
if ($launch = plugin('launch',$plugin_file))
$link = "<a href='/$launch'><img src='/$icon'></a>";
$link = "<a href='/$launch'><img src='/$icon' class='list'></a>";
else
$link = "<img src='/$icon'>";
$link = "<img src='/$icon' class='list'>";
//description
$readme = "plugins/{$name}/README.md";
if (file_exists($readme))

View File

@@ -221,6 +221,7 @@ span.tub{margin-right:8px;font-size:24px;cursor:pointer}
span.score{font-size:11px;color:#FFFFFF;position:absolute}
span#dropbox{background:none;line-height:60px;margin-right:20px}
img.icon{margin:-3px 4px 0 0}
img.list{width:auto;max-width:48px;height:48px}
div.content{position:absolute;top:0;left:0;width:100%;padding-bottom:30px;z-index:-1;clear:both}
div.content.shift{margin-top:1px}
label+.content{margin-top:64px}

View File

@@ -203,6 +203,7 @@ span.three{margin-left:-20px}
span.tub{margin-right:8px;font-size:24px;cursor:pointer}
span.score{font-size:11px;color:#F0F0F0;position:absolute}
img.icon{margin:-3px 4px 0 0}
img.list{width:auto;max-width:48px;height:48px}
div.content{position:absolute;top:45px;left:0;width:100%;padding-bottom:30px;z-index:-1;clear:both}
div.content.shift{margin-top:-70px}
div.tabs{position:relative;margin:24px 0 0 0}

View File

@@ -221,6 +221,7 @@ span.tub{margin-right:8px;font-size:24px;cursor:pointer}
span.score{font-size:11px;color:#FFFFFF;position:absolute}
span#dropbox{background:none;line-height:60px;margin-right:20px}
img.icon{margin:-3px 4px 0 0}
img.list{width:auto;max-width:48px;height:48px}
div.content{position:absolute;top:0;left:0;width:100%;padding-bottom:30px;z-index:-1;clear:both}
div.content.shift{margin-top:1px}
label+.content{margin-top:64px}

View File

@@ -203,6 +203,7 @@ span.three{margin-left:-20px}
span.tub{margin-right:8px;font-size:24px;cursor:pointer}
span.score{font-size:11px;color:#F0F0F0;position:absolute}
img.icon{margin:-3px 4px 0 0}
img.list{width:auto;max-width:48px;height:48px}
div.content{position:absolute;top:45px;left:0;width:100%;padding-bottom:30px;z-index:-1;clear:both}
div.content.shift{margin-top:-70px}
div.tabs{position:relative;margin:24px 0 0 0}