Fixes here and there

This commit is contained in:
Michał Gdula 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 <?php
} }
} }
if ($width > 1000) { if ($width > 1100) {
$make_preview = make_thumbnail($image_path, $preview_dir.$image_newname, 1000); $make_preview = make_thumbnail($image_path, $preview_dir.$image_newname, 900);
if ($make_preview != "success") { if ($make_preview != "success") {
?> ?>
<script> <script>

View file

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

View file

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

View file

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

View file

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