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"; $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();

View file

@ -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}

View file

@ -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;
} }