fix(rtl): timeline shortcode broken on rtl site

This commit is contained in:
ZhenShuo Leo
2025-08-02 19:16:33 +08:00
parent 637c43a125
commit 3150fb6631
3 changed files with 22 additions and 15 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
<ol class="border-l-2 border-primary-500 dark:border-primary-300 list-none">
<ol class="border-s-2 border-primary-500 dark:border-primary-300 list-none">
{{- .Inner -}}
</ol>
+4 -4
View File
@@ -3,12 +3,12 @@
{{ $badge := .Get "badge" }}
{{ $subheader := .Get "subheader" }}
<li>
<div class="flex flex-start">
<div class="flex">
<div
class="bg-primary-500 dark:bg-primary-300 text-neutral-50 dark:text-neutral-700 min-w-[30px] h-8 text-2xl flex items-center justify-center rounded-full -ml-12 mt-5">
class="bg-primary-500 dark:bg-primary-300 text-neutral-50 dark:text-neutral-700 min-w-[30px] h-8 text-2xl flex items-center justify-center rounded-full ltr:-ml-12 rtl:-mr-[79px] mt-5">
{{ partial "icon" $icon }}
</div>
<div class="block p-6 rounded-lg shadow-2xl min-w-full ml-6 mb-10 break-words">
<div class="block p-6 rounded-lg shadow-2xl flex-1 ms-6 mb-10 break-words">
<div class="flex justify-between">
{{ if $header }}
<h2 class="mt-0">{{ $header }}</h2>
@@ -29,4 +29,4 @@
</div>
</div>
</div>
</li>
</li>