Skip to content

Commit

Permalink
Fix/image height overflow (#962)
Browse files Browse the repository at this point in the history
* set height constraints

* fix cropped image

* update version info

* add changelog to sidebar
  • Loading branch information
hay-kot committed Feb 4, 2022
1 parent 4b9dcf9 commit 820fde3
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 19 deletions.
15 changes: 15 additions & 0 deletions docs/docs/changelog/v0.5.6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# v0.5.6 - Bug Fixes

**App Version: v0.5.6**

**Database Version: v0.5.0**

## Breaking Changes

!!! error "Breaking Changes"

None

## Bug Fixes
- Fixed image overflow on recipe pages [#961](https://github.com/hay-kot/mealie/issues/961)

1 change: 1 addition & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ nav:
- Style Guide: "contributors/developers-guide/style-guide.md"
- Development Road Map: "roadmap.md"
- Change Log:
- v0.5.6 Bug Fixes: "changelog/v0.5.6.md"
- v0.5.5 Bug Fixes: "changelog/v0.5.5.md"
- v0.5.4 Bug Fixes: "changelog/v0.5.4.md"
- v0.5.3 Bug Fixes: "changelog/v0.5.3.md"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<v-main>
<v-banner v-if="demo" sticky>
<div class="text-center">
<b> This is a Demo of the v0.5.6 (BETA) </b> | Username: changeme@email.com | Password: demo
<b> This is a Demo of the v0.5.7 (BETA) </b> | Username: changeme@email.com | Password: demo
</div>
</v-banner>
<GlobalSnackbar />
Expand Down
33 changes: 17 additions & 16 deletions frontend/src/pages/Recipe/ViewRecipe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,23 @@
</v-card>
<NoRecipe v-else-if="loadFailed" />
<v-card v-else-if="!loadFailed" id="myRecipe" class="d-print-none">
<a :href="getImage(recipeDetails.slug)">
<v-img
:min-height="hideImage ? '50' : imageHeight"
@error="hideImage = true"
:src="getImage(recipeDetails.slug)"
class="d-print-none"
:key="imageKey"
>
<RecipeTimeCard
:class="isMobile ? undefined : 'force-bottom'"
:prepTime="recipeDetails.prepTime"
:totalTime="recipeDetails.totalTime"
:performTime="recipeDetails.performTime"
/>
</v-img>
</a>
<a :href="getImage(recipeDetails.slug)">
<v-img
:height="hideImage ? '50' : imageHeight"
min-height="125"
@error="hideImage = true"
:src="getImage(recipeDetails.slug)"
class="d-print-none"
:key="imageKey"
>
<RecipeTimeCard
:class="isMobile ? undefined : 'force-bottom'"
:prepTime="recipeDetails.prepTime"
:totalTime="recipeDetails.totalTime"
:performTime="recipeDetails.performTime"
/>
</v-img>
</a>
<RecipePageActionMenu
:slug="recipeDetails.slug"
:name="recipeDetails.name"
Expand Down
2 changes: 1 addition & 1 deletion mealie/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import dotenv
from pydantic import BaseSettings, Field, PostgresDsn, validator

APP_VERSION = "v0.5.5"
APP_VERSION = "v0.5.6"
DB_VERSION = "v0.5.0"

CWD = Path(__file__).parent
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mealie"
version = "0.5.5"
version = "0.5.6"
description = "A Recipe Manager"
authors = ["Hayden <hay-kot@pm.me>"]
license = "MIT"
Expand Down

0 comments on commit 820fde3

Please sign in to comment.