diff --git a/dev/code-generation/_gen_utils.py b/dev/code-generation/_gen_utils.py index 736894e95..701c6fff3 100644 --- a/dev/code-generation/_gen_utils.py +++ b/dev/code-generation/_gen_utils.py @@ -8,7 +8,7 @@ from jinja2 import Template def render_python_template(template_file: Path, dest: Path, data: dict) -> str: - """ Render and Format a Jinja2 Template for Python Code""" + """Render and Format a Jinja2 Template for Python Code""" tplt = Template(template_file.read_text()) text = tplt.render(data) text = format_str(text, mode=FileMode()) diff --git a/dev/code-generation/_open_api_parser.py b/dev/code-generation/_open_api_parser.py index 533178c95..9bb336dc7 100644 --- a/dev/code-generation/_open_api_parser.py +++ b/dev/code-generation/_open_api_parser.py @@ -66,7 +66,7 @@ class OpenAPIParser: self.modules = {} def dump(self, out_path: Path) -> Path: - """ Writes the Open API as JSON to a json file""" + """Writes the Open API as JSON to a json file""" OPEN_API_FILE = out_path or Directories.out_dir / "openapi.json" with open(OPEN_API_FILE, "w") as f: diff --git a/dev/code-generation/_static.py b/dev/code-generation/_static.py index e24f574bd..c677687d8 100644 --- a/dev/code-generation/_static.py +++ b/dev/code-generation/_static.py @@ -18,7 +18,7 @@ class CodeDest: class CodeKeys: - """ Hard coded comment IDs that are used to generate code""" + """Hard coded comment IDs that are used to generate code""" nuxt_local_messages = "MESSAGE_LOCALES" nuxt_local_dates = "DATE_LOCALES" diff --git a/dev/scripts/app_routes_gen.py b/dev/scripts/app_routes_gen.py index 437e2d825..03e62ea60 100644 --- a/dev/scripts/app_routes_gen.py +++ b/dev/scripts/app_routes_gen.py @@ -126,7 +126,7 @@ def get_path_objects(app: FastAPI): def dump_open_api(app: FastAPI): - """ Writes the Open API as JSON to a json file""" + """Writes the Open API as JSON to a json file""" OPEN_API_FILE = CWD / "openapi.json" with open(OPEN_API_FILE, "w") as f: diff --git a/frontend/components/Domain/Recipe/RecipeCard.vue b/frontend/components/Domain/Recipe/RecipeCard.vue index 996169a59..dde34ed10 100644 --- a/frontend/components/Domain/Recipe/RecipeCard.vue +++ b/frontend/components/Domain/Recipe/RecipeCard.vue @@ -5,10 +5,10 @@ :class="{ 'on-hover': hover }" :elevation="hover ? 12 : 2" :to="route ? `/recipe/${slug}` : ''" - min-height="275" + :min-height="imageHeight + 75" @click="$emit('click')" > - +
@@ -23,26 +23,28 @@
- - - - - - - + + + + + + + + + @@ -92,6 +94,10 @@ export default { required: true, type: Number, }, + imageHeight: { + type: Number, + default: 200, + }, }, data() { return { diff --git a/frontend/components/Domain/Recipe/RecipeContextMenu.vue b/frontend/components/Domain/Recipe/RecipeContextMenu.vue index 6220d8986..944cbb0b9 100644 --- a/frontend/components/Domain/Recipe/RecipeContextMenu.vue +++ b/frontend/components/Domain/Recipe/RecipeContextMenu.vue @@ -41,6 +41,7 @@ + {{ $t("search.results") }} - {{ $t("search.advanced-search") }} + {{ $t("search.advanced-search") }}

{{ $t("recipe.ingredients") }}

- +
diff --git a/frontend/components/Domain/Recipe/RecipeInstructions.vue b/frontend/components/Domain/Recipe/RecipeInstructions.vue index 6ba80410d..cf74caa8f 100644 --- a/frontend/components/Domain/Recipe/RecipeInstructions.vue +++ b/frontend/components/Domain/Recipe/RecipeInstructions.vue @@ -2,7 +2,7 @@
- + {{ $globals.icons.link }} @@ -127,8 +127,7 @@ - - +
+ diff --git a/frontend/components/global/MarkdownEditor.vue b/frontend/components/global/MarkdownEditor.vue new file mode 100644 index 000000000..1bd3b18a9 --- /dev/null +++ b/frontend/components/global/MarkdownEditor.vue @@ -0,0 +1,67 @@ + + + + diff --git a/frontend/components/global/ToggleState.vue b/frontend/components/global/ToggleState.vue index d626258c2..02feef23e 100644 --- a/frontend/components/global/ToggleState.vue +++ b/frontend/components/global/ToggleState.vue @@ -8,16 +8,26 @@ \ No newline at end of file diff --git a/frontend/pages/recipe/_slug/index.vue b/frontend/pages/recipe/_slug/index.vue index 12db39784..3a7816d95 100644 --- a/frontend/pages/recipe/_slug/index.vue +++ b/frontend/pages/recipe/_slug/index.vue @@ -110,7 +110,7 @@

{{ $t("recipe.ingredients") }}

- + +