From ca7bedfa0af819ca93c7a7b09d8ca6628c27bdba Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 22 Mar 2018 22:41:45 +0100 Subject: [PATCH] Mappings first menu item now --- pages/editor/editor.pixy | 4 ++-- styles/grid.scarlet | 1 + styles/include/mixins.scarlet | 6 ++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pages/editor/editor.pixy b/pages/editor/editor.pixy index d1fd4487..f3ca80c8 100644 --- a/pages/editor/editor.pixy +++ b/pages/editor/editor.pixy @@ -18,16 +18,16 @@ component EditorTabs(url string) Tab("Editor", "pencil", "/editor") Tab("MAL", "exchange", "/editor/maldiff/anime") Tab("Kitsu", "exchange", "/editor/kitsu/new/anime") - Tab("Anime", "tv", "/editor/anime/synopsis") + Tab("Anime", "tv", "/editor/anime/mapping/mal") Tab("Companies", "building", "/editor/companies/description") Tab("Search", "search", "/database") if strings.Contains(url, "/editor/anime/") .tabs + Tab("Mappings", "arrows-h", "/editor/anime/mapping/mal") Tab("Synopsis", "align-left", "/editor/anime/synopsis") Tab("Genres", "clone", "/editor/anime/genres") Tab("Start date", "calendar", "/editor/anime/startdate") - Tab("Mappings", "arrows-h", "/editor/anime/mapping/mal") Tab("Images", "image", "/editor/anime/image/lowres") if strings.Contains(url, "/editor/anime/mapping/") diff --git a/styles/grid.scarlet b/styles/grid.scarlet index 4ed0c15f..4f49fe1e 100644 --- a/styles/grid.scarlet +++ b/styles/grid.scarlet @@ -8,6 +8,7 @@ mixin grid-cell width anime-image-medium-width height anime-image-medium-height max-width anime-image-medium-width + max-height anime-image-medium-height // min-width 90px // min-height 127px border-radius 3px diff --git a/styles/include/mixins.scarlet b/styles/include/mixins.scarlet index c2b10f46..18444a10 100644 --- a/styles/include/mixins.scarlet +++ b/styles/include/mixins.scarlet @@ -67,8 +67,9 @@ mixin anime-mini-item-image height anime-image-small-height !important anime-generic-item-image - // Make it easier for the browser to layout by specifying max-width as well + // Make it easier for the browser to layout by specifying max size as well max-width anime-image-small-width + max-height anime-image-small-height mixin anime-list-item-image width anime-image-tiny-width @@ -76,8 +77,9 @@ mixin anime-list-item-image border-radius 2px object-fit cover - // Make it easier for the browser to layout by specifying max-width as well + // Make it easier for the browser to layout by specifying max size as well max-width anime-image-tiny-width + max-height anime-image-tiny-height mixin sidebar vertical