From ba58b81b80749e05c809bdcb69ec852d403cac4b Mon Sep 17 00:00:00 2001 From: Theo Macron Date: Mon, 18 Nov 2024 11:39:03 +0100 Subject: [PATCH] front: fix rolling stock livery display Signed-off-by: Theo Macron --- .../operationalStudies/_managetrainschedule.scss | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/front/src/styles/scss/applications/operationalStudies/_managetrainschedule.scss b/front/src/styles/scss/applications/operationalStudies/_managetrainschedule.scss index aa004c162e2..b1d3399fc72 100644 --- a/front/src/styles/scss/applications/operationalStudies/_managetrainschedule.scss +++ b/front/src/styles/scss/applications/operationalStudies/_managetrainschedule.scss @@ -7,9 +7,14 @@ width: 3rem; overflow: hidden; padding-bottom: 0.25rem; - img { - height: 1rem; - } + img { + height: 1rem; + object-fit: cover; + object-position: left; + transform: scaleX(-1); + mask-image: linear-gradient(90deg, black 80%, rgba(0, 0, 0, 0)); + -webkit-mask-image: linear-gradient(90deg, black 80%, rgba(0, 0, 0, 0)); + } } img { height: 1.5rem;