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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user