diff --git a/src/main/resources/public/sass/global/components/containers/_board-read.scss b/src/main/resources/public/sass/global/components/containers/_board-read.scss index d5127bac..d7ccf286 100644 --- a/src/main/resources/public/sass/global/components/containers/_board-read.scss +++ b/src/main/resources/public/sass/global/components/containers/_board-read.scss @@ -98,4 +98,4 @@ overflow: hidden; } -} \ No newline at end of file +} diff --git a/src/main/resources/public/sass/global/components/directives/_card-comment.scss b/src/main/resources/public/sass/global/components/directives/_card-comment.scss index e4e6001a..2883fad1 100644 --- a/src/main/resources/public/sass/global/components/directives/_card-comment.scss +++ b/src/main/resources/public/sass/global/components/directives/_card-comment.scss @@ -64,6 +64,7 @@ &-content { line-height: 18px; margin-left: 40px; + white-space: initial !important; } -} \ No newline at end of file +} diff --git a/src/main/resources/public/sass/global/components/directives/_card-list-item.scss b/src/main/resources/public/sass/global/components/directives/_card-list-item.scss index 996b49ce..75d2651b 100644 --- a/src/main/resources/public/sass/global/components/directives/_card-list-item.scss +++ b/src/main/resources/public/sass/global/components/directives/_card-list-item.scss @@ -18,6 +18,18 @@ } } + $start: 0; + $end: 5; + @for $i from $start through $end { + &-zoom-#{$i} { + $width-value: 120 + $i * 48px; + width: #{$width-value}; + @if $i < 2 { + height: #{$width-value}; + } + } + } + &.draggable { cursor: move; } @@ -31,17 +43,25 @@ height: 15%; align-items: center; display: flex; + justify-content: space-between; &.reduced-format { height: 20% !important; } + &.dezoom{ + height: 25% !important; + margin-bottom: 0.5em; + } &-creation { - width: 80%; margin-left: 8px; display: flex; flex-direction: column; + &.dezoom{ + width: 49%; + margin-left: 0; + } &-user { @include noTextOverflow(1); } @@ -73,10 +93,27 @@ } } + &-flex-row { + display: flex; + position: relative; + align-items: end; + bottom: 0; + } &-preview { position: relative; height: 18vh; + + $start: 0; + $end: 5; + @for $i from $start through $end { + &-zoom-#{$i} { + $width-value: 3 + $i * 3em; + height: #{$width-value}; + display: flex; + flex: 1; + } + } img { margin-left: auto; margin-right: auto; @@ -120,7 +157,14 @@ bottom: 0; left: 0; z-index: 1; - + &-zoom-0{ + margin-left: -5px; + height: 1.5em; + } + &-zoom-1{ + margin-left: -5px; + height: 1.5em; + } i { font-size: $spacing-M; } @@ -137,15 +181,37 @@ } &-infos { + &-0 ,&-1{ + display: flex; + flex-direction: column; + justify-content: space-between; + flex-wrap: nowrap; + align-content: stretch; + align-items: stretch; + height: 70%; + } &-title { font-size: 16px; font-weight: bold; margin-bottom: 5px; height: 3vh; - + white-space: initial; &-ellipsis { @include noTextOverflow(1); + height: 1.5em; + &.dezoom-0{ + @include noTextOverflow(3); + width: 100%; + line-height: 18px; + height: auto; + } + &.dezoom-1{ + @include noTextOverflow(4); + line-height: 130%; + width: 100%; + height: auto; + } } &.reduced-format { @@ -183,4 +249,4 @@ font-size: 25px; right: 5px; } -} \ No newline at end of file +} diff --git a/src/main/resources/public/sass/global/components/directives/_card-list.scss b/src/main/resources/public/sass/global/components/directives/_card-list.scss index ea99a396..eaa4ad87 100644 --- a/src/main/resources/public/sass/global/components/directives/_card-list.scss +++ b/src/main/resources/public/sass/global/components/directives/_card-list.scss @@ -2,14 +2,25 @@ &.no-background-image { background: $magneto-lighter-light-grey; } + $start: 0; + $end: 5; + @for $i from $start through $end { + &-zoom-#{$i} { + $width-value: 120 + $i * 48px; + grid-template-columns: repeat(auto-fill, minmax(#{$width-value}, 1fr)); + } + } + + transform-origin: 0 0; + display: grid; + grid-gap: 10px; + column-gap: 14px; + grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); + grid-auto-rows: 0; &-free { min-height: 70vh; justify-content: center; - display: grid; - grid-gap: 10px; - grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); - grid-auto-rows: 0; } &-vertical { @@ -18,7 +29,6 @@ overflow-x: hidden; display: grid; grid-gap: 10px; - grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); grid-auto-rows: 0; } @@ -27,7 +37,6 @@ overflow-x: auto; flex-wrap: nowrap; padding-bottom: 20px; - display: flex; gap: 10px; } @@ -37,4 +46,4 @@ overflow-y: scroll; height: 55vh; } -} \ No newline at end of file +} diff --git a/src/main/resources/public/sass/global/components/directives/_section-list.scss b/src/main/resources/public/sass/global/components/directives/_section-list.scss index b185d7a3..35aa697d 100644 --- a/src/main/resources/public/sass/global/components/directives/_section-list.scss +++ b/src/main/resources/public/sass/global/components/directives/_section-list.scss @@ -5,6 +5,14 @@ overflow-y: hidden; min-width: min-content; + $start: 3; + $end: 5; + @for $i from $start through $end { + &-zoom-#{$i} { + $width-value: 100 + ($i - 3) * 20%; + width: $width-value + } + } i.magneto-card-settings { font-size: 25px; @@ -113,4 +121,4 @@ &-content-vertical:not(:first-child) { border-left: solid 2px rgba(211, 211, 211, .5); } -} \ No newline at end of file +} diff --git a/src/main/resources/public/template/board.html b/src/main/resources/public/template/board.html index 3842047b..906ddbb6 100644 --- a/src/main/resources/public/template/board.html +++ b/src/main/resources/public/template/board.html @@ -31,6 +31,11 @@