mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-01-21 11:51:10 -05:00
fix announcement mobile spacing
This commit is contained in:
parent
e34d1f12dc
commit
b8ca172ab4
@ -1,6 +1,6 @@
|
|||||||
{{if .Announcement}}
|
{{if .Announcement}}
|
||||||
<a target="_blank" href="{{.Announcement.Link}}"
|
<a target="_blank" href="{{.Announcement.Link}}"
|
||||||
class="flex flex-col justify-center items-center p-2 mx-auto space-x-2 max-w-sm rounded-lg border transition duration-200 {{if .Announcement.Warning}}border-yellow-900 hover:border-yellow-700{{else}} hover:border-lime-700 border-lime-900{{end}} bg-black/30">
|
class="flex flex-col justify-center items-center p-2 mx-auto mt-4 space-x-2 max-w-xs rounded-lg border transition duration-200 {{if .Announcement.Warning}}border-yellow-900 hover:border-yellow-700{{else}} hover:border-lime-700 border-lime-900{{end}} bg-black/30">
|
||||||
<span class="flex justify-center items-center font-bold">
|
<span class="flex justify-center items-center font-bold">
|
||||||
{{if .Announcement.Warning}}
|
{{if .Announcement.Warning}}
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="mr-1.5 text-yellow-600 size-5" width="24" height="24" viewBox="0 0 24 24"
|
<svg xmlns="http://www.w3.org/2000/svg" class="mr-1.5 text-yellow-600 size-5" width="24" height="24" viewBox="0 0 24 24"
|
||||||
@ -22,7 +22,7 @@
|
|||||||
{{.Announcement.Title}}
|
{{.Announcement.Title}}
|
||||||
</span>
|
</span>
|
||||||
<span class="text-xs lowercase">{{.Announcement.Body}}</span>
|
<span class="text-xs lowercase">{{.Announcement.Body}}</span>
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user