Consistent thumbnail hover actions

This commit is contained in:
James Barnsley
2020-04-09 09:02:53 +12:00
parent b5cf8bc6d9
commit 21bbd4c20e
11 changed files with 107 additions and 143 deletions

View File

@ -4336,25 +4336,43 @@ select {
opacity: 0.3;
transform: rotateX(4deg);
mix-blend-mode: multiply; }
.thumbnail__zoom {
.thumbnail__actions {
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
display: none;
position: absolute;
bottom: 5px;
right: 5px;
z-index: 3;
padding: 10px;
border-radius: 100%;
background: rgba(0, 0, 0, 0.4);
font-size: 12px;
cursor: pointer;
color: #FFFFFF;
border: 0 !important; }
.thumbnail__zoom:hover {
background: #000000; }
display: flex;
opacity: 0;
top: 0;
left: 0;
bottom: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
transform: translateY(-3px); }
.thumbnail__actions__item {
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
display: inline-flex;
z-index: 3;
width: 4.2rem;
height: 4.2rem;
align-items: center;
justify-content: center;
border-radius: 100%;
background: rgba(0, 0, 0, 0.4);
font-size: 2rem;
cursor: pointer;
color: #FFFFFF;
border: 0 !important;
margin: 0 5px; }
.thumbnail__actions__item:hover {
background: #000000; }
.thumbnail--small {
max-width: 50px; }
.thumbnail--circle .thumbnail__image {
@ -4362,8 +4380,9 @@ select {
.thumbnail--circle .thumbnail__zoom {
bottom: 0;
right: 0; }
.thumbnail:hover .thumbnail__zoom {
display: block; }
.thumbnail:hover .thumbnail__actions {
opacity: 1;
transform: translateY(0px); }
.playback-controls {
z-index: 3; }
@ -7055,40 +7074,6 @@ main .track-view {
.queue-view .current-track__artwork .thumbnail {
width: 30vh;
display: inline-block; }
.queue-view .current-track__artwork .thumbnail:hover .current-track__artwork__actions {
opacity: 1; }
.queue-view .current-track__artwork__actions {
position: absolute;
display: flex;
opacity: 0;
top: 0;
left: 0;
bottom: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 2; }
.queue-view .current-track__artwork__actions__item {
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
display: inline-flex;
z-index: 3;
width: 4.2rem;
height: 4.2rem;
align-items: center;
justify-content: center;
border-radius: 100%;
background: rgba(0, 0, 0, 0.4);
font-size: 2rem;
cursor: pointer;
color: #FFFFFF;
border: 0 !important;
margin: 0 5px; }
.queue-view .current-track__artwork__actions__item:hover {
background: #000000; }
.queue-view .current-track__details {
width: 48%;
margin-left: 2%; }

File diff suppressed because one or more lines are too long

View File

@ -71625,8 +71625,16 @@ exports.default = (0, _react.memo)(function (props) {
{ className: class_name },
props.useImageTag ? _react2.default.createElement('img', { alt: 'Artwork thumbnail', className: 'thumbnail__image thumbnail__image--use-image-tag', src: '' + (image || '/iris/assets/no-image.svg') }) : _react2.default.createElement('div', { className: 'thumbnail__image', style: { backgroundImage: 'url("' + (image || '/iris/assets/no-image.svg') + '")' } }),
props.glow && image && _react2.default.createElement('div', { className: 'thumbnail__image thumbnail__image--glow', style: { backgroundImage: 'url("' + image + '")' } }),
zoom_icon,
props.children
_react2.default.createElement(
'div',
{ className: 'thumbnail__actions' },
props.canZoom && image && _react2.default.createElement(
_Link2.default,
{ className: 'thumbnail__actions__item thumbnail__actions__item--zoom', to: '/image-zoom?url=' + image },
_react2.default.createElement(_Icon2.default, { name: 'search' })
),
props.children
)
);
});
@ -90059,18 +90067,14 @@ var Queue = function (_React$Component) {
_Thumbnail2.default,
{ glow: true, image: image },
_react2.default.createElement(
'div',
{ className: 'current-track__artwork__actions' },
_react2.default.createElement(
_URILink2.default,
{ uri: uri, className: 'current-track__artwork__actions__item' },
_react2.default.createElement(_Icon2.default, { name: 'album' })
),
_react2.default.createElement(
_Link2.default,
{ to: '/kiosk-mode', className: 'current-track__artwork__actions__item' },
_react2.default.createElement(_Icon2.default, { name: 'expand', type: 'fontawesome' })
)
_URILink2.default,
{ uri: uri, className: 'thumbnail__actions__item' },
_react2.default.createElement(_Icon2.default, { name: 'art_track' })
),
_react2.default.createElement(
_Link2.default,
{ to: '/kiosk-mode', className: 'thumbnail__actions__item' },
_react2.default.createElement(_Icon2.default, { name: 'expand', type: 'fontawesome' })
)
)
);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -100,7 +100,7 @@
// Release details
// These are automatically injected to built HTML
var build = "1586294052";
var build = "1586379476";
var version = "3.46.0";
// Construct the script tag