diff --git a/frontend/src/Collection/Overview/CollectionMovie.css b/frontend/src/Collection/Overview/CollectionMovie.css index 74a0b7266d..3629bef4b7 100644 --- a/frontend/src/Collection/Overview/CollectionMovie.css +++ b/frontend/src/Collection/Overview/CollectionMovie.css @@ -9,12 +9,13 @@ $hoverScale: 1.05; box-shadow: 0 0 10px var(--black); transition: all 200ms ease-in; - .poster { + .poster, + .overlayTitle { opacity: 0.5; transition: opacity 100ms linear 100ms; } - .overlayTitle { + .overlayHoverTitle { opacity: 1; transition: opacity 100ms linear 100ms; } @@ -31,7 +32,22 @@ $hoverScale: 1.05; background-color: var(--defaultColor); } -.overlay { +.overlayTitle { + position: absolute; + top: 0; + left: 0; + display: flex; + align-items: center; + justify-content: center; + padding: 5px; + width: 100%; + height: 100%; + color: var(--offWhite); + text-align: center; + font-size: 20px; +} + +.overlayHover { position: absolute; top: 0; left: 0; @@ -42,10 +58,10 @@ $hoverScale: 1.05; height: 100%; } -.overlayTitle { +.overlayHoverTitle { padding: 5px; color: var(--offWhite); - text-align: left; + text-align: center; font-weight: bold; font-size: 15px; opacity: 0; diff --git a/frontend/src/Collection/Overview/CollectionMovie.css.d.ts b/frontend/src/Collection/Overview/CollectionMovie.css.d.ts index 278e2d3272..ddfdbb1d6f 100644 --- a/frontend/src/Collection/Overview/CollectionMovie.css.d.ts +++ b/frontend/src/Collection/Overview/CollectionMovie.css.d.ts @@ -10,7 +10,8 @@ interface CssExports { 'externalLinks': string; 'link': string; 'monitorToggleButton': string; - 'overlay': string; + 'overlayHover': string; + 'overlayHoverTitle': string; 'overlayTitle': string; 'poster': string; 'posterContainer': string; diff --git a/frontend/src/Collection/Overview/CollectionMovie.js b/frontend/src/Collection/Overview/CollectionMovie.js index 2a0925452e..9043222578 100644 --- a/frontend/src/Collection/Overview/CollectionMovie.js +++ b/frontend/src/Collection/Overview/CollectionMovie.js @@ -82,6 +82,7 @@ class CollectionMovie extends Component { } = this.props; const { + hasPosterError, isEditMovieModalOpen, isNewAddMovieModalOpen } = this.state; @@ -134,26 +135,31 @@ class CollectionMovie extends Component { onLoad={this.onPosterLoad} /> -
-
+ { + hasPosterError && +
+ {title} +
+ } + +
+
{title} {year > 0 ? `(${year})` : ''}
{ id ? -
- -
: + : null }