From 2ff07cc68dd068c3101280fd6f273ef204393bd8 Mon Sep 17 00:00:00 2001 From: shibafu Date: Sun, 14 Apr 2019 23:16:05 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B5=E3=83=A0=E3=83=8D=E3=82=A4=E3=83=AB?= =?UTF-8?q?=E3=82=92=E5=90=AB=E3=82=80=E3=82=AB=E3=83=BC=E3=83=89=E3=82=92?= =?UTF-8?q?=E9=AB=98=E3=81=95400px=E3=81=AB=E5=9B=BA=E5=AE=9A=E3=80=81?= =?UTF-8?q?=E3=82=B5=E3=83=A0=E3=83=8D=E3=82=A4=E3=83=AB=E3=81=AF=E3=83=88?= =?UTF-8?q?=E3=83=AA=E3=83=9F=E3=83=B3=E3=82=B0=E8=A1=A8=E7=A4=BA=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/sass/components/_link-card.scss | 12 +++++++++++- resources/views/components/link-card.blade.php | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/resources/assets/sass/components/_link-card.scss b/resources/assets/sass/components/_link-card.scss index 846fde9..214b2b8 100644 --- a/resources/assets/sass/components/_link-card.scss +++ b/resources/assets/sass/components/_link-card.scss @@ -1,8 +1,18 @@ .link-card { - .row > div:last-child { + .row > div { max-height: 400px; overflow: hidden; + } + .row > div:first-child { + display: flex; + + &:not([display=none]) { + height: 400px; + } + } + + .row > div:last-child { // 省略を表す影を付けるやつ &::before { position: absolute; diff --git a/resources/views/components/link-card.blade.php b/resources/views/components/link-card.blade.php index 94c17f9..a10d707 100644 --- a/resources/views/components/link-card.blade.php +++ b/resources/views/components/link-card.blade.php @@ -1,7 +1,7 @@