Compare commits

..

2 commits

Author SHA1 Message Date
mrilyew
d0d9381cf7
Merge c561b6317e into a3d535040d 2024-10-25 17:17:33 +03:00
mrilyew
a3d535040d fix square avatars, video previews and bottm pgntr 2024-10-25 17:17:12 +03:00
4 changed files with 11 additions and 10 deletions

View file

@ -124,6 +124,6 @@ final class SearchPresenter extends OpenVKPresenter
'pageCount' => ceil($count / $this->template->perPage), 'pageCount' => ceil($count / $this->template->perPage),
]; ];
$this->template->extendedPaginatorConf = clone $this->template->paginatorConf; $this->template->extendedPaginatorConf = clone $this->template->paginatorConf;
$this->template->extendedPaginatorConf->space = 12; $this->template->extendedPaginatorConf->space = 11;
} }
} }

View file

@ -32,13 +32,13 @@
<div n:class='page_wrap_content_main, $section == "audios" && $count > 0 ? audios_padding'> <div n:class='page_wrap_content_main, $section == "audios" && $count > 0 ? audios_padding'>
{if $count > 0} {if $count > 0}
{if $section === 'users'} {if $section === 'users'}
<div class='search_content def_row_content' n:foreach="$data as $dat"> <div class='search_content content def_row_content' n:foreach="$data as $dat">
<table> <table>
<tbody> <tbody>
<tr> <tr>
<td valign="top"> <td valign="top">
<a href="{$dat->getURL()}"> <a href="{$dat->getURL()}">
<img src="{$dat->getAvatarUrl('miniscule')}" width="75" alt="{_photo}" loading='lazy' /> <img src="{$dat->getAvatarUrl('tiny')}" width="75" alt="{_photo}" loading='lazy' />
</a> </a>
</td> </td>
<td valign="top" style="width: 100%"> <td valign="top" style="width: 100%">
@ -128,13 +128,13 @@
highlightText({$query}, '.page_wrap_content_main', ['text']) highlightText({$query}, '.page_wrap_content_main', ['text'])
</script> </script>
{elseif $section === 'groups'} {elseif $section === 'groups'}
<div class='search_content def_row_content' n:foreach="$data as $dat"> <div class='search_content content def_row_content' n:foreach="$data as $dat">
<table> <table>
<tbody> <tbody>
<tr> <tr>
<td valign="top"> <td valign="top">
<a href="{$dat->getURL()}"> <a href="{$dat->getURL()}">
<img src="{$dat->getAvatarUrl('miniscule')}" width="75" alt="{_photo}" loading='lazy' /> <img src="{$dat->getAvatarUrl('tiny')}" width="75" alt="{_photo}" loading='lazy' />
</a> </a>
</td> </td>
<td valign="top" style="width: 100%"> <td valign="top" style="width: 100%">
@ -183,7 +183,7 @@
highlightText({$query}, '.page_wrap_content_main', ['text', "td[data-highlight='_clubDesc']"]) highlightText({$query}, '.page_wrap_content_main', ['text', "td[data-highlight='_clubDesc']"])
</script> </script>
{elseif $section === 'apps'} {elseif $section === 'apps'}
<div class='search_content def_row_content' n:foreach="$data as $dat"> <div class='search_content content def_row_content' n:foreach="$data as $dat">
<table> <table>
<tbody> <tbody>
<tr> <tr>

View file

@ -3,12 +3,12 @@
<tbody> <tbody>
<tr> <tr>
<td valign="top"> <td valign="top">
<div class="video-preview"> <a href="/video{$video->getPrettyId()}" data-id="{$video->getId()}">
<a href="/video{$video->getPrettyId()}" {$videoModal ? "id='videoOpen'" : ''} data-id="{$video->getId()}"> <div class="video-preview">
<img src="{$video->getThumbnailURL()}" <img src="{$video->getThumbnailURL()}"
style="max-width: 170px; max-height: 127px; margin: auto;" > style="max-width: 170px; max-height: 127px; margin: auto;" >
</a> </div>
</div> </a>
</td> </td>
<td valign="top" style="width: 100%"> <td valign="top" style="width: 100%">
{ifset infotable} {ifset infotable}

View file

@ -549,6 +549,7 @@
.playlistListView .playlistInfo .playlistName { .playlistListView .playlistInfo .playlistName {
font-weight: 600; font-weight: 600;
line-height: 12px;
} }
.playlistListView .playlistInfo .playlistMeta, .playlistListView .playlistInfo .playlistMeta span { .playlistListView .playlistInfo .playlistMeta, .playlistListView .playlistInfo .playlistMeta span {