FIX: Дизайн Q&A

This commit is contained in:
Evg 2022-09-07 19:08:38 +03:00
parent 220ac3295f
commit 07e1646bc2
5 changed files with 9 additions and 6 deletions

View file

@ -42,8 +42,8 @@ class SearchController extends Controller
$stem = new LinguaStem($lang);
$stem = $stem->text($q);
$results = SearchModel::getSearch($pageNumber, $this->limit, $stem, $type);
$count = SearchModel::getSearchCount($stem, $type);
$results = SearchModel::getSearch($pageNumber, $this->limit, $q, $type);
$count = SearchModel::getSearchCount($q, $type);
$user_id = UserData::getUserId();
SearchModel::setSearchLogs(
@ -68,7 +68,7 @@ class SearchController extends Controller
'type' => $type,
'sheet' => 'admin',
'q' => $q,
'tags' => SearchModel::getSearchTags($q, $facet, 4),
'tags' => SearchModel::getSearchTags($stem, $facet, 4),
'sw' => (microtime(true) - $sw ?? 0) * 1000,
'count' => $count,
'pagesCount' => ceil($count / $this->limit),

View file

@ -183,4 +183,7 @@
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="eyeglass">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M8 4h-2l-3 10" /><path d="M16 4h2l3 10" /><line x1="10" y1="16" x2="14" y2="16" /><path d="M21 16.5a3.5 3.5 0 0 1 -7 0v-2.5h7v2.5" /><path d="M10 16.5a3.5 3.5 0 0 1 -7 0v-2.5h7v2.5" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="arrows-down-up">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/><line x1="17" y1="3" x2="17" y2="21" /><path d="M10 18l-3 3l-3 -3" /><line x1="7" y1="21" x2="7" y2="3" /><path d="M20 6l-3 -3l-3 3" />
</symbol>
</svg>

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -4,7 +4,7 @@
<?= insert('/_block/navigation/nav', ['list' => config('navigation/nav.home')]); ?>
</ul>
<?= insert('/content/post/post-card', ['data' => $data]); ?>
<?= insert('/content/post/post', ['data' => $data]); ?>
<?php if (UserData::getUserScroll()) : ?>
<div id="scrollArea"></div>

View file

@ -38,7 +38,7 @@ use Hleb\Constructor\Handlers\Request; ?>
</a>
<div class="flex flex-row flex-auto items-center justify-between lowercase">
<div class="flex-auto">
<?= Img::facets($post['facet_list'], 'blog', 'gray text-xs mr15'); ?>
<?= Img::facets($post['facet_list'], 'blog', 'tag-yellow'); ?>
<?= Img::facets($post['facet_list'], 'topic', 'tag-grey'); ?>
<?php if ($post['post_url_domain']) : ?>
<a class="gray-600 text-sm ml10" href="<?= url('domain', ['domain' => $post['post_url_domain']]); ?>">

View file

@ -30,7 +30,7 @@ $facet = $data['facet'] ?? false; ?>
<a class="black text-xs" href="/web">
<svg class="icons icon-small">
<use xlink:href="/assets/svg/icons.svg#link"></use>
</svg> <?= __('app.search'); ?> <?= __('app.catalog'); ?>
</svg> <?= __('app.catalog'); ?>
</a>
<a class="black text-xs" href="/search">
<svg class="icons icon-small">