Remove javascript positioning🤮🤮🤮

This commit is contained in:
lalka2016 2023-08-11 17:31:46 +03:00
parent 553731deed
commit 77d0603e67
3 changed files with 5 additions and 11 deletions

View file

@ -35,7 +35,7 @@ final class SearchPresenter extends OpenVKPresenter
$invert = $this->queryParam("invert") == 1 ? "ASC" : "DESC";
$page = (int) ($this->queryParam("p") ?? 1);
$this->willExecuteWriteAction();
# $this->willExecuteWriteAction();
if($query != "")
$this->assertUserLoggedIn();

View file

@ -149,11 +149,10 @@
]}
{/if}
</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>
</p>
<div>
{include searchOptions}
<div style="display: flex;flex-direction: row;">
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
<div class="container_gray borderup infContainer" style="float:left;width:73.3%;">
@ -231,12 +230,7 @@
]}
{/if}
</div>
<script>
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>
{include searchOptions}
{/block}
{block searchOptions}

View file

@ -2319,7 +2319,7 @@ a.poll-retract-vote {
float:right;
scrollbar-width: none;
font-size:12px;
background-color:#f7f7f7;
background-color:#F6F6F6;
margin-right: -7px;
}