Improve scaling for various screen sizes/resolutions
This commit is contained in:
parent
201a3f3529
commit
5e58c8e28f
|
|
@ -80,7 +80,7 @@ foreach ( $entries as $entry ) {
|
|||
$readclass = "";
|
||||
}
|
||||
$info["div"] = "<div class='item folder{$readclass}' data-path=\"{$info["newpath"]}\" data-name=\"{$info["comname"]}\">";
|
||||
$info["div"] .= "<img src=\"{$info["thumburl"]}\"><br clear=all />{$info["comname"]}</div>";
|
||||
$info["div"] .= "<img class='thumbnail' src=\"{$info["thumburl"]}\"><br clear=all />{$info["comname"]}</div>";
|
||||
$folders[] = $info;
|
||||
} else {
|
||||
if ( (substr($entry, -3) == "cbz") || (substr($entry, -3) == "cbr") ) {
|
||||
|
|
@ -106,7 +106,7 @@ foreach ( $entries as $entry ) {
|
|||
$readclass = "";
|
||||
}
|
||||
$info["div"] = "<div class='item{$readclass}'>";
|
||||
$info["div"] .= "<img class='issue' data-relcomic=\"{$info["relcomic"]}\" data-comname=\"{$info["comname"]}\" border=0 src=\"{$info["thumburl"]}\">";
|
||||
$info["div"] .= "<img class='issue thumbnail' data-relcomic=\"{$info["relcomic"]}\" data-comname=\"{$info["comname"]}\" border=0 src=\"{$info["thumburl"]}\">";
|
||||
$info["div"] .= "<br clear=all /><a href=\"downloadcomic.php?comic={$info["relcomic"]}\">{$info["comname"]}</a></div>";
|
||||
$issues[] = $info;
|
||||
$thumbfile = "../" . THUMBSDIR . $data['compath'] . "/" . $info['comname'] . ".jpg";
|
||||
|
|
|
|||
|
|
@ -62,13 +62,18 @@ a, a:link, a:visited, a:active {
|
|||
|
||||
.item {
|
||||
cursor: pointer;
|
||||
width: 330px;
|
||||
height: 495px;
|
||||
width: 25vw;
|
||||
height: calc(25vw * 1.5 + 2em);
|
||||
margin: 5px;
|
||||
border: 2px solid var(--foreground-color);
|
||||
padding: 2px;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
font-size: 2vw;
|
||||
}
|
||||
|
||||
.thumbnail {
|
||||
width: 95%;
|
||||
}
|
||||
|
||||
.readborder {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=0.38, minimum-scale=0.25, maximum-scale=3.0, user-scalable=yes" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.25, maximum-scale=3.0, user-scalable=yes" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<link rel="icon" sizes="128x128" href="img/comics_128.png" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user