Skip to content

Commit 3ee97f7

Browse files
authored
fix: mobile layout alignment issue in meetup timeline (#12)
* fix: askew m-web layout * ref: remove auto formatting + tailwind class cleanup
1 parent d844b51 commit 3ee97f7

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

layouts/_default/list.html

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -66,29 +66,28 @@ <h2 class="font-bold text-xl items-center">{{ .Params.title }}</h2>
6666
</div>
6767
{{ else }}
6868
<div class="flex flex-row">
69-
<div class="text-gray-800 text-xs lg:text-sm mx-3 lg:w-1/2 py-6">{{ .Params.eventDate }}</div>
70-
71-
<div class="inline-block w-0.5 self-stretch bg-gray-400"></div>
72-
73-
74-
<div class="flex flex-col py-4 lg:w-1/2">
75-
<div class="px-4">
76-
<h2 class="text-sm lg:text-lg font-semibold mb-1">{{ .Params.title }}</h2>
77-
<p class="text-gray-600 mb-4 text-xs lg:text-sm whitespace-nowrap">{{ .Params.host }}</p>
78-
<div class="flex space-x-4">
79-
<div class="flex items-center border border-gray-500 px-2 py-1 rounded-lg hover:bg-white text-gray-700 whitespace-nowrap">
80-
<span class="text-xs lg:text-sm">📄</span>
81-
<a href={{ .Params.path }} class="text-xs lg:text-sm ms-1">Read more</a>
69+
<div class="text-gray-800 text-xs lg:text-sm mx-3 py-6 w-20 lg:w-1/2">
70+
<p>{{ .Params.eventDate }}</p>
71+
</div>
72+
<div class="w-0.5 bg-gray-400"></div>
73+
<div class="flex flex-col py-4 lg:w-1/2">
74+
<div class="px-4 max-w-64 mt-1 lg:max-w-none">
75+
<h2 class="text-sm lg:text-lg font-semibold mb-1">{{ .Params.title }}</h2>
76+
<p class="text-gray-600 mb-4 text-xs lg:text-sm lg:whitespace-nowrap">{{ .Params.host }}</p>
77+
<div class="flex space-x-4">
78+
<div class="flex items-center border border-gray-500 px-2 py-1 rounded-lg hover:bg-white text-gray-700 whitespace-nowrap">
79+
<span class="text-xs lg:text-sm">📄</span>
80+
<a href={{ .Params.path }} class="text-xs lg:text-sm ms-1">Read more</a>
81+
</div>
82+
<button
83+
class="flex items-center space-x-2 border border-gray-500 px-2 py-1 text-gray-700 rounded-lg hover:bg-white whitespace-nowrap">
84+
<span class="text-xs lg:text-sm">🎥</span>
85+
<a href={{ .Params.highlightsLink }} class="text-xs lg:text-sm" target="_blank">View highlights</a>
86+
</button>
8287
</div>
83-
<button
84-
class="flex items-center space-x-2 border border-gray-500 px-2 py-1 text-gray-700 rounded-lg hover:bg-white whitespace-nowrap">
85-
<span class="text-xs lg:text-sm">🎥</span>
86-
<a href={{ .Params.highlightsLink }} class="text-xs lg:text-sm" target="_blank">View highlights</a>
87-
</button>
8888
</div>
8989
</div>
9090
</div>
91-
</div>
9291
{{ end }}
9392
</div>
9493
</div>

0 commit comments

Comments
 (0)