mirror of
https://github.com/JonasunderscoreJones/jonasjones.dev.git
synced 2025-10-23 00:49:19 +02:00
fix: lastfm accessibility
This commit is contained in:
parent
d026fe56cd
commit
fafa5ca29a
1 changed files with 11 additions and 2 deletions
|
@ -26,8 +26,8 @@
|
|||
* @param {string} str
|
||||
*/
|
||||
function truncateString(str) {
|
||||
if (str.length > 30) {
|
||||
return str.slice(0, 30) + "...";
|
||||
if (str.length > 29) {
|
||||
return str.slice(0, 29) + "...";
|
||||
} else {
|
||||
return str;
|
||||
}
|
||||
|
@ -335,6 +335,15 @@
|
|||
opacity: 0.5;
|
||||
align-self: center;
|
||||
}
|
||||
.lastfm-text {
|
||||
display: none;
|
||||
transition: width 0.3s ease-out;
|
||||
}
|
||||
|
||||
.lastfm:hover .lastfm-text {
|
||||
display:block
|
||||
}
|
||||
|
||||
.link {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue