Refactor BackButton component in Show.vue to use route name instead of URL; update PostAuthorsList.vue to correct conditional rendering for authors list display.

This commit is contained in:
F4ilji
2025-09-11 12:37:49 +05:00
parent b905ba4cb5
commit 3b55909906
2 changed files with 2 additions and 7 deletions
@@ -1,15 +1,10 @@
<template>
<!-- List -->
<dl v-if="authors[0] === 'Без автора' && null" class="flex flex-col sm:flex-row gap-1 items-baseline">
<!-- items-baseline выравнивает по базовой линии -->
<dl v-if="!(authors[0] === 'Без автора' && null)" class="flex flex-col sm:flex-row gap-1 items-baseline">
<dt class="min-w-40">
<h3 class="block text-sm text-gray-500 m-0 underline">Над статьей работали:</h3>
<!-- m-0 убирает margin -->
</dt>
<dd class="m-0">
<!-- m-0 для dd на всякий случай -->
<ul class="m-0 inline-flex flex-wrap items-center">
<!-- flex-wrap и items-center для красивого списка -->
<li
v-for="(author, index) in authors"
:key="index"