fix: lastfm accessibility

This commit is contained in:
J-onasJones 2023-09-18 21:05:28 +02:00
parent d026fe56cd
commit fafa5ca29a

View file

@ -26,8 +26,8 @@
* @param {string} str * @param {string} str
*/ */
function truncateString(str) { function truncateString(str) {
if (str.length > 30) { if (str.length > 29) {
return str.slice(0, 30) + "..."; return str.slice(0, 29) + "...";
} else { } else {
return str; return str;
} }
@ -335,6 +335,15 @@
opacity: 0.5; opacity: 0.5;
align-self: center; align-self: center;
} }
.lastfm-text {
display: none;
transition: width 0.3s ease-out;
}
.lastfm:hover .lastfm-text {
display:block
}
.link { .link {
position: absolute; position: absolute;
width: 100%; width: 100%;