mirror of
https://github.com/openvk/openvk
synced 2024-12-26 02:21:25 +03:00
Remove javascript positioning🤮🤮🤮
This commit is contained in:
parent
553731deed
commit
77d0603e67
3 changed files with 5 additions and 11 deletions
|
@ -35,7 +35,7 @@ final class SearchPresenter extends OpenVKPresenter
|
||||||
$invert = $this->queryParam("invert") == 1 ? "ASC" : "DESC";
|
$invert = $this->queryParam("invert") == 1 ? "ASC" : "DESC";
|
||||||
$page = (int) ($this->queryParam("p") ?? 1);
|
$page = (int) ($this->queryParam("p") ?? 1);
|
||||||
|
|
||||||
$this->willExecuteWriteAction();
|
# $this->willExecuteWriteAction();
|
||||||
if($query != "")
|
if($query != "")
|
||||||
$this->assertUserLoggedIn();
|
$this->assertUserLoggedIn();
|
||||||
|
|
||||||
|
|
|
@ -149,11 +149,10 @@
|
||||||
]}
|
]}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<p style="margin-left: 15px; margin-top: 0;">
|
<p style="margin-left: 15px; {if $thisUser->getPaginatorType() == 1}margin-top: 14px;{/if}">
|
||||||
<b>{tr("results", $count)}</b>
|
<b>{tr("results", $count)}</b>
|
||||||
</p>
|
</p>
|
||||||
<div>
|
<div style="display: flex;flex-direction: row;">
|
||||||
{include searchOptions}
|
|
||||||
|
|
||||||
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
||||||
<div class="container_gray borderup infContainer" style="float:left;width:73.3%;">
|
<div class="container_gray borderup infContainer" style="float:left;width:73.3%;">
|
||||||
|
@ -231,12 +230,7 @@
|
||||||
]}
|
]}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<script>
|
{include searchOptions}
|
||||||
window.addEventListener("load", (event) => {
|
|
||||||
document.getElementsByClassName("container_gray")[0].style.minHeight = document.getElementsByClassName("searchOptions")[0].clientHeight+"px";
|
|
||||||
document.getElementsByClassName("searchOptions")[0].style.minHeight = document.getElementsByClassName("container_gray")[0].clientHeight-3+"px";
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block searchOptions}
|
{block searchOptions}
|
||||||
|
|
|
@ -2319,7 +2319,7 @@ a.poll-retract-vote {
|
||||||
float:right;
|
float:right;
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
background-color:#f7f7f7;
|
background-color:#F6F6F6;
|
||||||
margin-right: -7px;
|
margin-right: -7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue