Merge remote-tracking branch 'origin/dev'

This commit is contained in:
Flummi 2022-05-07 17:49:51 +02:00
commit 2a94a84c44
4 changed files with 37 additions and 4 deletions

6
.gitignore vendored
View File

@ -1,7 +1,7 @@
node_modules/ node_modules/
logs/*.log logs/*.log
config.json config.json
public/b/* public/b
public/ca/* public/ca
public/t/* public/t
tmp/* tmp/*

0
public/b/.empty Executable file → Normal file
View File

View File

@ -1790,3 +1790,36 @@ table img {
.results { .results {
padding: 5px; padding: 5px;
} }
/* fix for mobile table view in search! */
@media screen and (max-width: 650px) {
table {
width:inherit;
}
thead {
display: none;
}
tr:nth-of-type(2n) {
background-color: inherit;
}
tr td:first-child {
float: right;
}
tbody td {
display: block;
box-shadow: 0px 1px 0px var(--accent);
}
tbody td:before {
content: attr(data-th);
display: block;
text-align:left;
}
table.table th, table.table td {
padding: 5px;
margin: 5px;
display: flex;
}
table.table td img{
position: relative;
width: 100%;
}
}

View File

@ -5,7 +5,7 @@
</form> </form>
<div class="results"> <div class="results">
@if(result) @if(result)
<h1>{{ count }} f0cks given (page {{ pagination.page }} of {{ pagination.end }}):</h1> <h2>{{ count }} f0cks given (page {{ pagination.page }} of {{ pagination.end }}):</h2>
<table style="width: 100%" class="table"> <table style="width: 100%" class="table">
<thead> <thead>
<tr> <tr>