Исправил переносы при нескольких авторах
This commit is contained in:
parent
dcbd8a5980
commit
ddd73c1412
2 changed files with 4 additions and 4 deletions
|
|
@ -15,12 +15,12 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="flex items-center gap-2 p-1 text-lg font-bold {className} rounded-lg
|
class="flex flex-nowrap items-center gap-2 p-1 text-lg font-bold {className} rounded-lg
|
||||||
{highlightClasses(type == 'published' ? 'bg-amber-600' : 'bg-purple-600')}
|
{highlightClasses(type == 'published' ? 'bg-amber-600' : 'bg-purple-600')}
|
||||||
{highlightClasses('text-slate-50')}"
|
{highlightClasses('text-slate-50')}"
|
||||||
>
|
>
|
||||||
<Icon {icon} width={28} height={28} />
|
<Icon {icon} width={28} height={28} />
|
||||||
<span>
|
<span class="text-nowrap">
|
||||||
{dateString
|
{dateString
|
||||||
? new Date(dateString).toLocaleString(undefined, {
|
? new Date(dateString).toLocaleString(undefined, {
|
||||||
month: 'short',
|
month: 'short',
|
||||||
|
|
|
||||||
|
|
@ -36,9 +36,9 @@
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
class="flex shrink-0 flex-col items-center justify-center p-2 font-bold {isPublic
|
class="flex shrink-0 flex-col flex-wrap items-center justify-center p-2 font-bold {isPublic
|
||||||
? 'bg-amber-50 text-slate-950'
|
? 'bg-amber-50 text-slate-950'
|
||||||
: 'bg-red-500 text-slate-50'} sm:flex-row sm:flex-nowrap sm:gap-5"
|
: 'bg-red-500 text-slate-50'} sm:flex-row sm:gap-x-5"
|
||||||
>
|
>
|
||||||
<DateWidget dateString={data.blogPost.date} type="published" />
|
<DateWidget dateString={data.blogPost.date} type="published" />
|
||||||
{#if data.blogPost.dateChanged}
|
{#if data.blogPost.dateChanged}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue