Skip to content

Commit

Permalink
Merge pull request #2412 from brapifra/brais/folderitem-text-overflow
Browse files Browse the repository at this point in the history
Add text-overflow: ellipsis to FolderItem
  • Loading branch information
Rokt33r authored Sep 30, 2018
2 parents e0e0fbf + 5dcd74b commit 8eb5351
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 7 additions & 2 deletions browser/main/modals/PreferencesModal/FolderItem.styl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
height 35px
box-sizing border-box
padding 2.5px 15px
display flex
&:hover
background-color darken(white, 3%)

Expand All @@ -18,7 +19,10 @@
border-left solid 2px transparent
padding 0 10px
line-height 30px
float left
flex 1
white-space nowrap
text-overflow ellipsis
overflow hidden
.folderItem-left-danger
color $danger-color
font-weight bold
Expand Down Expand Up @@ -52,7 +56,8 @@
outline none

.folderItem-right
float right
-webkit-box-flex: 1
white-space nowrap

.folderItem-right-button
vertical-align middle
Expand Down
10 changes: 7 additions & 3 deletions browser/main/modals/PreferencesModal/StorageItem.styl
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
box-sizing border-box
border-bottom $default-border
margin-bottom 5px
display flex

.header-label
float left
cursor pointer
&:hover
.header-label-editButton
opacity 1
flex 1
white-space nowrap
text-overflow ellipsis
overflow hidden

.header-label-path
color $ui-inactive-text-color
Expand All @@ -38,8 +42,8 @@
outline none

.header-control
float right

-webkit-box-flex: 1
white-space nowrap
.header-control-button
width 30px
height 25px
Expand Down

0 comments on commit 8eb5351

Please sign in to comment.