Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove whitespace so user can view more to-dos simultaneously #47

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/todo_web/live/item_live/item_component.html.heex
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<div id={"item-#{@item.id}"} class='flex flex-col w-1/2 md:w-1/3 lg:w-1/4 m-2 border-solid border-2 border-black rounded-md'>
<div id={"item-#{@item.id}"} class='flex flex-row w-full md:w-1/2 lg:w-1/3 m-1 border-solid border-2 border-black rounded-sm'>
<div class='m-2'>
<div><%= @item.description %></div>
<div class='mt-1'>
<div>
<strong>Due</strong>
<span class={ItemComponent.compare_date(@item.due_date, @timezone)}>
<%= Todo.Date.pretty_date(@item.due_date) %>
</span>
</div>
</div>
<div class='flex flex-row grow'>
<div class='justify-start m-2 self-end'><%= Item.pretty_status(@item) %></div>
<div class='flex flex-row grow justify-end self-end m-2'>
<div class='mr-2'><%= live_patch "Edit", to: Routes.item_index_path(@socket, :edit, @item) %></div>
<div><%= link "Delete", to: "#", phx_click: "delete", phx_value_id: @item.id, data: [confirm: "Are you sure?"] %></div>
Expand Down
Loading