Fixes here and there

This commit is contained in:
Michał 2022-09-10 08:37:01 +00:00
parent eeb79ec53c
commit 951871b983
5 changed files with 10 additions and 3 deletions

View file

@ -44,8 +44,8 @@ if (isset($_POST['submit'])) {
<?php
}
}
if ($width > 1000) {
$make_preview = make_thumbnail($image_path, $preview_dir.$image_newname, 1000);
if ($width > 1100) {
$make_preview = make_thumbnail($image_path, $preview_dir.$image_newname, 900);
if ($make_preview != "success") {
?>
<script>

View file

@ -338,6 +338,7 @@ nav .btn {
transition: outline 0.1s cubic-bezier(0.19, 1, 0.22, 1);
background-color: #151515;
opacity: 0.8;
box-shadow: 6px 6px 2px rgba(21, 21, 21, 0.5333333333);
}
.preview-button:hover {
outline: #E8E3E3 0.2rem solid;

View file

@ -228,6 +228,8 @@
opacity: 0.8;
box-shadow: $shadow;
&:hover {
outline: $white 0.2rem solid;
color: $fg;

View file

@ -18,6 +18,9 @@ if ($debug["testing"]) {
<?php
}
ini_set('post_max_size', '20M');
ini_set('upload_max_filesize', '20M');
if (is_file("index.php")) {
$root_dir = "";
} else {

View file

@ -21,7 +21,7 @@
// Get ALT
var alt = $("#alt").val();
formData.append("alt", alt);
// Get ALT
// Get TAGS
var tags = $("#tags").val();
formData.append("tags", tags);
// Submit data
@ -43,6 +43,7 @@
// Empty values
$("#image").val("");
$("#alt").val("");
$("#tags").val("");
$("#submit").val("");
} else {
sniffleAdd('Gwha!', 'Pls provide image', 'var(--red)', 'assets/icons/file-search.svg');