Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoCoelho2003 committed Sep 24, 2024
1 parent a7a468b commit 8735240
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ defmodule AtomicWeb.AnnouncementLive.Components.AnnouncementCard do
@moduledoc false
use AtomicWeb, :component

@assigns [:announcement]

def announcement_card(assigns) do
~H"""
<div class="flex flex-col justify-center rounded-lg hover:bg-zinc-50">
Expand All @@ -25,7 +23,7 @@ defmodule AtomicWeb.AnnouncementLive.Components.AnnouncementCard do
</object>
</div>
<%= if @announcement.image do %>
<div class="h-[250px] md:h-[450px] overflow-hidden">
<div class="h-[250px] overflow-hidden md:h-[450px]">
<img class="h-full w-full object-cover" src={Uploaders.Post.url({@announcement.image, @announcement}, :original)} alt="Announcement Image" />
</div>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion lib/atomic_web/live/announcement_live/index.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule AtomicWeb.AnnouncementLive.Index do
use AtomicWeb, :live_view

import AtomicWeb.Components.{Announcement, Button, Empty, Pagination, Tabs}
import AtomicWeb.Components.{Button, Empty, Pagination, Tabs}
import AtomicWeb.AnnouncementLive.Components.AnnouncementCard

alias Atomic.Accounts
Expand Down

0 comments on commit 8735240

Please sign in to comment.