Skip to content

Commit

Permalink
Fix responsiveness in md breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRodrigues10 committed Sep 23, 2023
1 parent ea58ca2 commit 7c8b6e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/atomic_web/live/organization_live/index.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
<h4 class="font-medium text-lg text-zinc-900">
<%= organization.name %>
</h4>
<p class="text-xs text-zinc-900">
<p class="sm:hidden md:block xl:hidden text-xs text-zinc-900">
<%= String.slice(organization.long_name,0..35) <> "..." %>
</p>
<p class="sm:block md:hidden xl:block text-xs text-zinc-900">
<%= organization.long_name %>
</p>
</div>
Expand Down
2 changes: 2 additions & 0 deletions priv/repo/seeds/organizations.exs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ defmodule Atomic.Repo.Seeds.Organizations do
})
|> Repo.update!()


@organizations
|> Enum.each(fn organization ->
%{
name: organization["name"],
long_name: organization["long_name"],
description: organization["description"]
}
|> Organizations.create_organization()
Expand Down

0 comments on commit 7c8b6e1

Please sign in to comment.