forked from shibao/cannery
		
	fix table alignment
This commit is contained in:
		@@ -1,4 +1,7 @@
 | 
				
			|||||||
# v0.7.0
 | 
					# v0.7.1
 | 
				
			||||||
 | 
					- Fix table component alignment and styling
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# v0.7.1
 | 
				
			||||||
- Add shading to table component
 | 
					- Add shading to table component
 | 
				
			||||||
- Fix chart to sum by day
 | 
					- Fix chart to sum by day
 | 
				
			||||||
- Fix whitespace when copying invite url
 | 
					- Fix whitespace when copying invite url
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
<div id={@id} class="w-full overflow-x-auto border border-gray-600 rounded-lg shadow-lg bg-black">
 | 
					<div id={@id} class="w-full overflow-x-auto border border-gray-600 rounded-lg shadow-lg bg-white">
 | 
				
			||||||
  <table class="min-w-full table-auto text-center bg-white">
 | 
					  <table class="min-w-full table-auto text-center bg-white">
 | 
				
			||||||
    <thead class="border-b border-primary-600">
 | 
					    <thead class="border-b border-primary-600">
 | 
				
			||||||
      <tr>
 | 
					      <tr>
 | 
				
			||||||
@@ -11,21 +11,22 @@
 | 
				
			|||||||
                phx-value-sort-key={key}
 | 
					                phx-value-sort-key={key}
 | 
				
			||||||
                phx-target={@myself}
 | 
					                phx-target={@myself}
 | 
				
			||||||
              >
 | 
					              >
 | 
				
			||||||
                <span class="underline"><%= label %></span>
 | 
					                <i class="w-0 float-right fas fa-sm fa-chevron-up opacity-0"></i>
 | 
				
			||||||
 | 
					                <span class={if @last_sort_key == key, do: "underline"}><%= label %></span>
 | 
				
			||||||
                <%= if @last_sort_key == key do %>
 | 
					                <%= if @last_sort_key == key do %>
 | 
				
			||||||
                  <%= case @sort_mode do %>
 | 
					                  <%= case @sort_mode do %>
 | 
				
			||||||
                    <% :asc -> %>
 | 
					                    <% :asc -> %>
 | 
				
			||||||
                      <i class="fas fa-sm fa-chevron-down"></i>
 | 
					                      <i class="w-0 float-right fas fa-sm fa-chevron-down"></i>
 | 
				
			||||||
                    <% :desc -> %>
 | 
					                    <% :desc -> %>
 | 
				
			||||||
                      <i class="fas fa-sm fa-chevron-up"></i>
 | 
					                      <i class="w-0 float-right fas fa-sm fa-chevron-up"></i>
 | 
				
			||||||
                  <% end %>
 | 
					                  <% end %>
 | 
				
			||||||
                <% else %>
 | 
					                <% else %>
 | 
				
			||||||
                  <i class="fas fa-sm fa-chevron-up opacity-0"></i>
 | 
					                  <i class="w-0 float-right fas fa-sm fa-chevron-up opacity-0"></i>
 | 
				
			||||||
                <% end %>
 | 
					                <% end %>
 | 
				
			||||||
              </span>
 | 
					              </span>
 | 
				
			||||||
            </th>
 | 
					            </th>
 | 
				
			||||||
          <% else %>
 | 
					          <% else %>
 | 
				
			||||||
            <th class={"p-2 #{column[:class]}"}>
 | 
					            <th class={"p-2 cursor-not-allowed #{column[:class]}"}>
 | 
				
			||||||
              <%= label %>
 | 
					              <%= label %>
 | 
				
			||||||
            </th>
 | 
					            </th>
 | 
				
			||||||
          <% end %>
 | 
					          <% end %>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -138,7 +138,7 @@ defmodule CanneryWeb.HomeLive do
 | 
				
			|||||||
            target="_blank"
 | 
					            target="_blank"
 | 
				
			||||||
            rel="noopener noreferrer"
 | 
					            rel="noopener noreferrer"
 | 
				
			||||||
          >
 | 
					          >
 | 
				
			||||||
            <p>0.7.0</p>
 | 
					            <p>0.7.1</p>
 | 
				
			||||||
            <i class="fas fa-md fa-info-circle"></i>
 | 
					            <i class="fas fa-md fa-info-circle"></i>
 | 
				
			||||||
          </.link>
 | 
					          </.link>
 | 
				
			||||||
        </li>
 | 
					        </li>
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								mix.exs
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								mix.exs
									
									
									
									
									
								
							@@ -4,7 +4,7 @@ defmodule Cannery.MixProject do
 | 
				
			|||||||
  def project do
 | 
					  def project do
 | 
				
			||||||
    [
 | 
					    [
 | 
				
			||||||
      app: :cannery,
 | 
					      app: :cannery,
 | 
				
			||||||
      version: "0.7.0",
 | 
					      version: "0.7.1",
 | 
				
			||||||
      elixir: "1.14.1",
 | 
					      elixir: "1.14.1",
 | 
				
			||||||
      elixirc_paths: elixirc_paths(Mix.env()),
 | 
					      elixirc_paths: elixirc_paths(Mix.env()),
 | 
				
			||||||
      compilers: Mix.compilers(),
 | 
					      compilers: Mix.compilers(),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user