Skip to content

Commit

Permalink
fix square avatars, video previews and bottm pgntr
Browse files Browse the repository at this point in the history
  • Loading branch information
mrilyew committed Oct 25, 2024
1 parent 53f6b3e commit a3d5350
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Web/Presenters/SearchPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,6 @@ function renderIndex(): void
'pageCount' => ceil($count / $this->template->perPage),
];
$this->template->extendedPaginatorConf = clone $this->template->paginatorConf;
$this->template->extendedPaginatorConf->space = 12;
$this->template->extendedPaginatorConf->space = 11;
}
}
10 changes: 5 additions & 5 deletions Web/Presenters/templates/Search/Index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
<div n:class='page_wrap_content_main, $section == "audios" && $count > 0 ? audios_padding'>
{if $count > 0}
{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>
<tbody>
<tr>
<td valign="top">
<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>
</td>
<td valign="top" style="width: 100%">
Expand Down Expand Up @@ -128,13 +128,13 @@
highlightText({$query}, '.page_wrap_content_main', ['text'])
</script>
{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>
<tbody>
<tr>
<td valign="top">
<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>
</td>
<td valign="top" style="width: 100%">
Expand Down Expand Up @@ -183,7 +183,7 @@
highlightText({$query}, '.page_wrap_content_main', ['text', "td[data-highlight='_clubDesc']"])
</script>
{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>
<tbody>
<tr>
Expand Down
8 changes: 4 additions & 4 deletions Web/Presenters/templates/components/video.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<tbody>
<tr>
<td valign="top">
<div class="video-preview">
<a href="/video{$video->getPrettyId()}" {$videoModal ? "id='videoOpen'" : ''} data-id="{$video->getId()}">
<a href="/video{$video->getPrettyId()}" data-id="{$video->getId()}">
<div class="video-preview">
<img src="{$video->getThumbnailURL()}"
style="max-width: 170px; max-height: 127px; margin: auto;" >
</a>
</div>
</div>
</a>
</td>
<td valign="top" style="width: 100%">
{ifset infotable}
Expand Down
1 change: 1 addition & 0 deletions Web/static/css/audios.css
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@

.playlistListView .playlistInfo .playlistName {
font-weight: 600;
line-height: 12px;
}

.playlistListView .playlistInfo .playlistMeta, .playlistListView .playlistInfo .playlistMeta span {
Expand Down

0 comments on commit a3d5350

Please sign in to comment.