From f334d4c119ecafb1ad5e436c31452214054bd219 Mon Sep 17 00:00:00 2001 From: Juan de la Cruz Date: Mon, 24 Apr 2017 12:05:46 +0200 Subject: [PATCH] add svg img th --- .../resources/styles/main/partials/dashboard-grid.scss | 7 +++++++ frontend/src/uxbox/main/ui/dashboard/projects.cljs | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/resources/styles/main/partials/dashboard-grid.scss b/frontend/resources/styles/main/partials/dashboard-grid.scss index c9a7b3970..f134ce8cd 100644 --- a/frontend/resources/styles/main/partials/dashboard-grid.scss +++ b/frontend/resources/styles/main/partials/dashboard-grid.scss @@ -317,8 +317,15 @@ border-top-left-radius: $br-medium; border-top-right-radius: $br-medium; height: 70%; + overflow: hidden; position: relative; width: 100%; + + .img-th { + height: auto; + width: 100%; + } + } // MULTISELECT OPTIONS BAR diff --git a/frontend/src/uxbox/main/ui/dashboard/projects.cljs b/frontend/src/uxbox/main/ui/dashboard/projects.cljs index 4ba3fa07a..0c6f300ba 100644 --- a/frontend/src/uxbox/main/ui/dashboard/projects.cljs +++ b/frontend/src/uxbox/main/ui/dashboard/projects.cljs @@ -148,7 +148,7 @@ [:div.grid-item-th {:style {:background-image (str "url('" url "')")}}] [:div.grid-item-th - {:style {:background-image "url('/images/project-placeholder.svg')"}}])) + [:img.img-th {:src "/images/project-placeholder.svg" :alt "Project title"}]])) ;; --- Grid Item @@ -251,4 +251,3 @@ [:section.dashboard-content {} (menu state projects-map) (grid state projects-map)]])) -