mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-30 17:53:31 -04:00 
			
		
		
		
	improve spacing and fix layout on small screens
This commit is contained in:
		| @@ -1,6 +1,6 @@ | |||||||
| <template> | <template> | ||||||
|   <div v-if="value.length > 0 || edit"> |   <div v-if="value.length > 0 || edit"> | ||||||
|     <v-card class="mt-2"> |     <v-card class="mt-4"> | ||||||
|       <v-card-title class="py-2"> |       <v-card-title class="py-2"> | ||||||
|         {{ $t("asset.assets") }} |         {{ $t("asset.assets") }} | ||||||
|       </v-card-title> |       </v-card-title> | ||||||
|   | |||||||
| @@ -18,7 +18,6 @@ | |||||||
|           solo |           solo | ||||||
|           hide-details |           hide-details | ||||||
|           dense |           dense | ||||||
|           class="mx-1" |  | ||||||
|           type="number" |           type="number" | ||||||
|           :placeholder="$t('recipe.quantity')" |           :placeholder="$t('recipe.quantity')" | ||||||
|           @keypress="quantityFilter" |           @keypress="quantityFilter" | ||||||
| @@ -89,7 +88,6 @@ | |||||||
|             hide-details |             hide-details | ||||||
|             dense |             dense | ||||||
|             solo |             solo | ||||||
|             class="mx-1" |  | ||||||
|             :placeholder="$t('recipe.notes')" |             :placeholder="$t('recipe.notes')" | ||||||
|             @click="$emit('clickIngredientField', 'note')" |             @click="$emit('clickIngredientField', 'note')" | ||||||
|           > |           > | ||||||
| @@ -100,7 +98,7 @@ | |||||||
|           <BaseButtonGroup |           <BaseButtonGroup | ||||||
|             hover |             hover | ||||||
|             :large="false" |             :large="false" | ||||||
|             class="my-auto" |             class="my-auto d-flex" | ||||||
|             :buttons="btns" |             :buttons="btns" | ||||||
|             @toggle-section="toggleTitle" |             @toggle-section="toggleTitle" | ||||||
|             @toggle-original="toggleOriginalText" |             @toggle-original="toggleOriginalText" | ||||||
|   | |||||||
| @@ -24,13 +24,13 @@ | |||||||
|       </v-btn> |       </v-btn> | ||||||
|     </v-card-actions> |     </v-card-actions> | ||||||
|     <AdvancedOnly> |     <AdvancedOnly> | ||||||
|       <v-card v-if="isEditForm" flat class="ma-2 mb-2"> |       <v-card v-if="isEditForm" flat class="mb-2 mx-n2"> | ||||||
|         <v-card-title> {{ $t('recipe.api-extras') }} </v-card-title> |         <v-card-title> {{ $t('recipe.api-extras') }} </v-card-title> | ||||||
|         <v-divider class="mx-2"></v-divider> |         <v-divider class="ml-4"></v-divider> | ||||||
|         <v-card-text> |         <v-card-text> | ||||||
|           {{ $t('recipe.api-extras-description') }} |           {{ $t('recipe.api-extras-description') }} | ||||||
|           <v-row v-for="(_, key) in recipe.extras" :key="key" class="mt-1"> |           <v-row v-for="(_, key) in recipe.extras" :key="key" class="mt-1"> | ||||||
|             <v-col cols="8"> |             <v-col style="max-width: 400px;"> | ||||||
|               <v-text-field v-model="recipe.extras[key]" dense :label="key"> |               <v-text-field v-model="recipe.extras[key]" dense :label="key"> | ||||||
|                 <template #prepend> |                 <template #prepend> | ||||||
|                   <v-btn color="error" icon class="mt-n4" @click="removeApiExtra(key)"> |                   <v-btn color="error" icon class="mt-n4" @click="removeApiExtra(key)"> | ||||||
| @@ -41,8 +41,8 @@ | |||||||
|             </v-col> |             </v-col> | ||||||
|           </v-row> |           </v-row> | ||||||
|         </v-card-text> |         </v-card-text> | ||||||
|         <v-card-actions class="d-flex"> |         <v-card-actions class="d-flex ml-2 mt-n3"> | ||||||
|           <div style="max-width: 200px"> |           <div> | ||||||
|             <v-text-field v-model="apiNewKey" :label="$t('recipe.message-key')"></v-text-field> |             <v-text-field v-model="apiNewKey" :label="$t('recipe.message-key')"></v-text-field> | ||||||
|           </div> |           </div> | ||||||
|           <BaseButton create small class="ml-5" @click="createApiExtra" /> |           <BaseButton create small class="ml-5" @click="createApiExtra" /> | ||||||
|   | |||||||
| @@ -26,7 +26,7 @@ | |||||||
|       </TransitionGroup> |       </TransitionGroup> | ||||||
|     </draggable> |     </draggable> | ||||||
|     <v-skeleton-loader v-else boilerplate elevation="2" type="list-item"> </v-skeleton-loader> |     <v-skeleton-loader v-else boilerplate elevation="2" type="list-item"> </v-skeleton-loader> | ||||||
|     <div class="d-flex flex-wrap justify-center justify-sm-end mt-2"> |     <div class="d-flex flex-wrap justify-center justify-sm-end mt-3"> | ||||||
|       <v-tooltip top color="accent"> |       <v-tooltip top color="accent"> | ||||||
|         <template #activator="{ on, attrs }"> |         <template #activator="{ on, attrs }"> | ||||||
|           <span v-on="on"> |           <span v-on="on"> | ||||||
|   | |||||||
| @@ -49,11 +49,13 @@ | |||||||
|         <v-card-actions> |         <v-card-actions> | ||||||
|           <BaseButton cancel @click="dialog = false"> </BaseButton> |           <BaseButton cancel @click="dialog = false"> </BaseButton> | ||||||
|           <v-spacer></v-spacer> |           <v-spacer></v-spacer> | ||||||
|  |           <div class="d-flex flex-wrap justify-end"> | ||||||
|             <BaseButton color="info" @click="autoSetReferences"> |             <BaseButton color="info" @click="autoSetReferences"> | ||||||
|               <template #icon> {{ $globals.icons.robot }}</template> |               <template #icon> {{ $globals.icons.robot }}</template> | ||||||
|               {{ $t("recipe.auto") }} |               {{ $t("recipe.auto") }} | ||||||
|             </BaseButton> |             </BaseButton> | ||||||
|           <BaseButton save @click="setIngredientIds"> </BaseButton> |             <BaseButton class="ml-2" save @click="setIngredientIds"> </BaseButton> | ||||||
|  |           </div> | ||||||
|         </v-card-actions> |         </v-card-actions> | ||||||
|       </v-card> |       </v-card> | ||||||
|     </v-dialog> |     </v-dialog> | ||||||
| @@ -84,7 +86,7 @@ | |||||||
|         <div v-for="(step, index) in value" :key="step.id" class="list-group-item"> |         <div v-for="(step, index) in value" :key="step.id" class="list-group-item"> | ||||||
|           <v-app-bar |           <v-app-bar | ||||||
|             v-if="step.id && showTitleEditor[step.id]" |             v-if="step.id && showTitleEditor[step.id]" | ||||||
|             class="primary mx-1 mt-6" |             class="primary mt-6" | ||||||
|             style="cursor: pointer" |             style="cursor: pointer" | ||||||
|             dark |             dark | ||||||
|             dense |             dense | ||||||
| @@ -219,6 +221,7 @@ | |||||||
|         </div> |         </div> | ||||||
|       </TransitionGroup> |       </TransitionGroup> | ||||||
|     </draggable> |     </draggable> | ||||||
|  |     <v-divider class="mt-10 d-flex d-md-none"/> | ||||||
|   </section> |   </section> | ||||||
| </template> | </template> | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| <template> | <template> | ||||||
|   <div> |   <div> | ||||||
|     <!-- Recipe Categories --> |     <!-- Recipe Categories --> | ||||||
|     <v-card v-if="recipe.recipeCategory.length > 0 || isEditForm" class="mt-2"> |     <v-card v-if="recipe.recipeCategory.length > 0 || isEditForm" class="mt-10"> | ||||||
|       <v-card-title class="py-2"> |       <v-card-title class="py-2"> | ||||||
|         {{ $t("recipe.categories") }} |         {{ $t("recipe.categories") }} | ||||||
|       </v-card-title> |       </v-card-title> | ||||||
| @@ -19,7 +19,7 @@ | |||||||
|     </v-card> |     </v-card> | ||||||
|  |  | ||||||
|     <!-- Recipe Tags --> |     <!-- Recipe Tags --> | ||||||
|     <v-card v-if="recipe.tags.length > 0 || isEditForm" class="mt-2"> |     <v-card v-if="recipe.tags.length > 0 || isEditForm" class="mt-4"> | ||||||
|       <v-card-title class="py-2"> |       <v-card-title class="py-2"> | ||||||
|         {{ $t("tag.tags") }} |         {{ $t("tag.tags") }} | ||||||
|       </v-card-title> |       </v-card-title> | ||||||
| @@ -45,7 +45,7 @@ | |||||||
|       </v-card-text> |       </v-card-text> | ||||||
|     </v-card> |     </v-card> | ||||||
|  |  | ||||||
|     <RecipeNutrition v-if="recipe.settings.showNutrition" v-model="recipe.nutrition" class="mt-10" :edit="isEditForm" /> |     <RecipeNutrition v-if="recipe.settings.showNutrition" v-model="recipe.nutrition" class="mt-4" :edit="isEditForm" /> | ||||||
|     <RecipeAssets |     <RecipeAssets | ||||||
|       v-if="recipe.settings.showAssets" |       v-if="recipe.settings.showAssets" | ||||||
|       v-model="recipe.assets" |       v-model="recipe.assets" | ||||||
|   | |||||||
| @@ -34,7 +34,7 @@ | |||||||
|         {{ $t("recipe.timeline-is-empty") }} |         {{ $t("recipe.timeline-is-empty") }} | ||||||
|       </v-card-title> |       </v-card-title> | ||||||
|     </v-card> |     </v-card> | ||||||
|     <div v-if="loading" class="mb-3"> |     <div v-if="loading" class="mb-3 text-center"> | ||||||
|       <AppLoader :loading="loading" :waiting-text="$tc('general.loading-events')" /> |       <AppLoader :loading="loading" :waiting-text="$tc('general.loading-events')" /> | ||||||
|     </div> |     </div> | ||||||
|   </div> |   </div> | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| <template> | <template> | ||||||
|   <v-sheet :class="$vuetify.breakpoint.smAndDown ? 'pa-0' : 'px-3 py-0'"> |   <v-sheet :class="$vuetify.breakpoint.smAndDown ? 'pa-0' : 'px-3 py-0'"> | ||||||
|     <BasePageTitle v-if="groupName" divider> |     <BasePageTitle v-if="groupName"> | ||||||
|       <template #header> |       <template #header> | ||||||
|         <v-img max-height="200" max-width="150" :src="require('~/static/svgs/manage-members.svg')" /> |         <v-img max-height="200" max-width="150" :src="require('~/static/svgs/manage-members.svg')" /> | ||||||
|       </template> |       </template> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user