forked from shibao/cannery
		
	fix grid spacing in mobile mode
This commit is contained in:
		| @@ -1,5 +1,6 @@ | |||||||
| # 0.3.0 | # 0.2.1 | ||||||
| - | - Fix checkbox spacing for mobile view | ||||||
|  | - Fix spacing with form elements in mobile view | ||||||
|  |  | ||||||
| # 0.2.0 | # 0.2.0 | ||||||
| - Add or remove tags from containers list and details page | - Add or remove tags from containers list and details page | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ | |||||||
|     let={f} |     let={f} | ||||||
|     for={@changeset} |     for={@changeset} | ||||||
|     id="shot-group-form" |     id="shot-group-form" | ||||||
|     class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |     class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|     phx-target={@myself} |     phx-target={@myself} | ||||||
|     phx-change="validate" |     phx-change="validate" | ||||||
|     phx-submit="save" |     phx-submit="save" | ||||||
|   | |||||||
| @@ -10,7 +10,7 @@ | |||||||
|     phx-target={@myself} |     phx-target={@myself} | ||||||
|     phx-change="validate" |     phx-change="validate" | ||||||
|     phx-submit="save" |     phx-submit="save" | ||||||
|     class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |     class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|   > |   > | ||||||
|     <%= if @changeset.action && not @changeset.valid? do %> |     <%= if @changeset.action && not @changeset.valid? do %> | ||||||
|       <div class="invalid-feedback col-span-3 text-center"> |       <div class="invalid-feedback col-span-3 text-center"> | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ | |||||||
|     phx-target={@myself} |     phx-target={@myself} | ||||||
|     phx-change="validate" |     phx-change="validate" | ||||||
|     phx-submit="save" |     phx-submit="save" | ||||||
|     class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |     class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|   > |   > | ||||||
|     <%= if @changeset.action && not @changeset.valid? do %> |     <%= if @changeset.action && not @changeset.valid? do %> | ||||||
|       <div class="invalid-feedback col-span-3 text-center"> |       <div class="invalid-feedback col-span-3 text-center"> | ||||||
|   | |||||||
| @@ -40,7 +40,7 @@ | |||||||
|       let={f} |       let={f} | ||||||
|       for={:tag} |       for={:tag} | ||||||
|       id="add-tag-to-container-form" |       id="add-tag-to-container-form" | ||||||
|       class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |       class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|       phx-target={@myself} |       phx-target={@myself} | ||||||
|       phx-submit="save" |       phx-submit="save" | ||||||
|     > |     > | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ | |||||||
|     let={f} |     let={f} | ||||||
|     for={@changeset} |     for={@changeset} | ||||||
|     id="container-form" |     id="container-form" | ||||||
|     class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |     class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|     phx-target={@myself} |     phx-target={@myself} | ||||||
|     phx-change="validate" |     phx-change="validate" | ||||||
|     phx-submit="save" |     phx-submit="save" | ||||||
|   | |||||||
| @@ -130,7 +130,7 @@ defmodule CanneryWeb.HomeLive do | |||||||
|         <li class="flex flex-row justify-center space-x-2"> |         <li class="flex flex-row justify-center space-x-2"> | ||||||
|           <b>Version:</b> |           <b>Version:</b> | ||||||
|           <p> |           <p> | ||||||
|             0.2.0 |             0.2.1 | ||||||
|           </p> |           </p> | ||||||
|         </li> |         </li> | ||||||
|       </ul> |       </ul> | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ | |||||||
|     let={f} |     let={f} | ||||||
|     for={@changeset} |     for={@changeset} | ||||||
|     id="invite-form" |     id="invite-form" | ||||||
|     class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |     class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|     phx-target={@myself} |     phx-target={@myself} | ||||||
|     phx-change="validate" |     phx-change="validate" | ||||||
|     phx-submit="save" |     phx-submit="save" | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ | |||||||
|     let={f} |     let={f} | ||||||
|     for={@changeset} |     for={@changeset} | ||||||
|     id="shot-group-form" |     id="shot-group-form" | ||||||
|     class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |     class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|     phx-target={@myself} |     phx-target={@myself} | ||||||
|     phx-change="validate" |     phx-change="validate" | ||||||
|     phx-submit="save" |     phx-submit="save" | ||||||
|   | |||||||
| @@ -36,7 +36,7 @@ defmodule CanneryWeb.TagLive.FormComponent do | |||||||
|         let={f} |         let={f} | ||||||
|         for={@changeset} |         for={@changeset} | ||||||
|         id="tag-form" |         id="tag-form" | ||||||
|         class="flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |         class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|         phx-target={@myself} |         phx-target={@myself} | ||||||
|         phx-change="validate" |         phx-change="validate" | ||||||
|         phx-submit="save" |         phx-submit="save" | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ | |||||||
|            Routes.user_confirmation_path(@conn, :create), |            Routes.user_confirmation_path(@conn, :create), | ||||||
|            [ |            [ | ||||||
|              class: |              class: | ||||||
|                "flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |                "flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|            ], |            ], | ||||||
|            fn f -> %> |            fn f -> %> | ||||||
|     <%= label(f, :email, class: "title text-lg text-primary-600") %> |     <%= label(f, :email, class: "title text-lg text-primary-600") %> | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ | |||||||
|            Routes.user_registration_path(@conn, :create), |            Routes.user_registration_path(@conn, :create), | ||||||
|            [ |            [ | ||||||
|              class: |              class: | ||||||
|                "flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |                "flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|            ], |            ], | ||||||
|            fn f -> %> |            fn f -> %> | ||||||
|     <%= if @changeset.action && not @changeset.valid? do %> |     <%= if @changeset.action && not @changeset.valid? do %> | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ | |||||||
|            Routes.user_reset_password_path(@conn, :update, @token), |            Routes.user_reset_password_path(@conn, :update, @token), | ||||||
|            [ |            [ | ||||||
|              class: |              class: | ||||||
|                "flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |                "flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|            ], |            ], | ||||||
|            fn f -> %> |            fn f -> %> | ||||||
|     <%= if @changeset.action && not @changeset.valid? do %> |     <%= if @changeset.action && not @changeset.valid? do %> | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ | |||||||
|            Routes.user_reset_password_path(@conn, :create), |            Routes.user_reset_password_path(@conn, :create), | ||||||
|            [ |            [ | ||||||
|              class: |              class: | ||||||
|                "flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |                "flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|            ], |            ], | ||||||
|            fn f -> %> |            fn f -> %> | ||||||
|     <%= label(f, :email, class: "title text-lg text-primary-600") %> |     <%= label(f, :email, class: "title text-lg text-primary-600") %> | ||||||
|   | |||||||
| @@ -8,7 +8,7 @@ | |||||||
|            [ |            [ | ||||||
|              as: :user, |              as: :user, | ||||||
|              class: |              class: | ||||||
|                "flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |                "flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|            ], |            ], | ||||||
|            fn f -> %> |            fn f -> %> | ||||||
|     <%= if @error_message do %> |     <%= if @error_message do %> | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ | |||||||
|            Routes.user_settings_path(@conn, :update), |            Routes.user_settings_path(@conn, :update), | ||||||
|            [ |            [ | ||||||
|              class: |              class: | ||||||
|                "pb-4 text-center flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |                "flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|            ], |            ], | ||||||
|            fn f -> %> |            fn f -> %> | ||||||
|     <h3 class="title text-primary-600 text-lg col-span-3"> |     <h3 class="title text-primary-600 text-lg col-span-3"> | ||||||
| @@ -53,7 +53,7 @@ | |||||||
|            Routes.user_settings_path(@conn, :update), |            Routes.user_settings_path(@conn, :update), | ||||||
|            [ |            [ | ||||||
|              class: |              class: | ||||||
|                "pb-4 text-center flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" |                "flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" | ||||||
|            ], |            ], | ||||||
|            fn f -> %> |            fn f -> %> | ||||||
|     <h3 class="title text-primary-600 text-lg col-span-3"> |     <h3 class="title text-primary-600 text-lg col-span-3"> | ||||||
|   | |||||||
							
								
								
									
										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.2.0", |       version: "0.2.1", | ||||||
|       elixir: "~> 1.12", |       elixir: "~> 1.12", | ||||||
|       elixirc_paths: elixirc_paths(Mix.env()), |       elixirc_paths: elixirc_paths(Mix.env()), | ||||||
|       compilers: [:gettext] ++ Mix.compilers(), |       compilers: [:gettext] ++ Mix.compilers(), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user