diff --git a/css/main.css b/css/main.css index a3b2265..c55e066 100644 --- a/css/main.css +++ b/css/main.css @@ -377,7 +377,30 @@ nav .btn { .image-detail input { font-family: "Secular One", sans-serif; } +.image-detail > div { + width: 100%; + display: flex; + flex-direction: row; +} +.image-detail > div > div { + width: 50%; +} +.image-detail > div > div * { + margin-top: 0; + margin-bottom: 0.5rem; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; +} +@media (max-width: 669px) { + .image-detail > div { + flex-direction: column; + } + .image-detail > div > div { + width: auto; + } +} .tags-root { margin-bottom: 1rem; padding: 0.5rem 0.5rem 0 0.5rem; diff --git a/css/scss/_body.scss b/css/scss/_body.scss index 95072f3..0bdad07 100644 --- a/css/scss/_body.scss +++ b/css/scss/_body.scss @@ -214,6 +214,35 @@ .image-detail { @include defaultDecoration($green); @include defaultFont(); + + &>div { + width: 100%; + display: flex; + flex-direction: row; + + &>div { + width: 50%; + + * { + margin-top: 0; + margin-bottom: 0.5rem; + + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + } + } + } +} +@media (max-width: 669px) { + .image-detail { + &>div { + flex-direction: column; + &>div { + width: auto; + } + } + } } // TAGS diff --git a/image.php b/image.php index c7a32cc..895c237 100644 --- a/image.php +++ b/image.php @@ -149,40 +149,42 @@ -
ID: ".$image['id']."
"; + + // Image Upload date + echo "Last updated: +0 ".$image['upload']."
"; + ?> +File Type: ".pathinfo($image['imagename'], PATHINFO_EXTENSION)."
"; + + // Image resolution + list($width, $height) = getimagesize($image_path); + echo "Image resolution: ".$width."x".$height."
"; + ?> +ID: ".$image['id']."
"; - - // File name - $image_pathinfo = pathinfo($image['imagename']); - if (strlen($image['imagename']) > 30) { - echo "File Name: ".substr($image_pathinfo['filename'], 0, 30)."...
"; - } else { - echo "File Name: ".$image_pathinfo['filename']."
"; - } - - // File extention - echo "File Type: ".pathinfo($image['imagename'], PATHINFO_EXTENSION)."
"; - - // Image resolution - list($width, $height) = getimagesize($image_path); - echo "Image resolution: ".$width."x".$height."
"; - - // Image Upload date - echo "Last updated: +0 ".$image['upload']."
"; - - echo "