Skip to content

Commit

Permalink
Provides the following UI improvement:
Browse files Browse the repository at this point in the history
* Multi-line text beside folder icon
  • Loading branch information
DeJQit committed Feb 3, 2021
1 parent 59803c4 commit e80fe75
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/components/Folder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ export default {
}
}
$name-height: 1rem;
.folder-name {
position: absolute;
z-index: 3;
Expand All @@ -186,20 +184,20 @@ $name-height: 1rem;
opacity: 1;
&__icon {
height: 40%;
margin-top: calc(30% - #{$name-height} / 2); // center name+icon
margin-top: 30%; // center name+icon
background-size: 40%;
}
&__name {
overflow: hidden;
height: $name-height;
height: 30%;
padding: 0 10px;
text-align: center;
white-space: nowrap;
text-overflow: ellipsis;
color: var(--color-main-background);
text-shadow: 0 0 8px var(--color-main-text);
font-size: $name-height;
line-height: $name-height;
font-size: 1rem;
line-height: 1rem;
}
}
Expand Down

0 comments on commit e80fe75

Please sign in to comment.