Skip to content
Merged
Prev Previous commit
Next Next commit
fix(settings): make apps list search result valid table
Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Mar 19, 2024
commit 939759985a98d8d43f3cf19baa68945ab25ecc1e
30 changes: 22 additions & 8 deletions apps/settings/src/components/AppList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,32 @@

<div id="apps-list-search" class="apps-list apps-list--list-view">
<div class="apps-list__list-container">
<template v-if="search !== '' && searchApps.length > 0">
<div class="app-item">
<div />
<td colspan="5">
<h2>{{ t('settings', 'Results from other categories') }}</h2>
</td>
</div>
<table v-if="search !== '' && searchApps.length > 0" class="apps-list__list-container">
<caption class="apps-list__bundle-header">
{{ t('settings', 'Results from other categories') }}
</caption>
<tr key="app-list-view-header">
<th>
<span class="hidden-visually">{{ t('settings', 'Icon') }}</span>
</th>
<th>
<span class="hidden-visually">{{ t('settings', 'Name') }}</span>
</th>
<th>
<span class="hidden-visually">{{ t('settings', 'Version') }}</span>
</th>
<th>
<span class="hidden-visually">{{ t('settings', 'Level') }}</span>
</th>
<th>
<span class="hidden-visually">{{ t('settings', 'Actions') }}</span>
</th>
</tr>
<AppItem v-for="app in searchApps"
:key="app.id"
:app="app"
:category="category" />
</template>
</table>
</div>
</div>

Expand Down