Skip to content

Commit

Permalink
Fixed: Styles: Trimmed chars in history items
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnuqw committed Apr 15, 2022
1 parent 5a05b84 commit 354b5ab
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 46 deletions.
12 changes: 6 additions & 6 deletions src/styles/themes/compact/sidebar/panel.history.styl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@

.HistoryPanel .item
position: relative
padding: 1px 0 4px
padding: 1px 0 0
height: 27px
&:before
content: ''
position: absolute
Expand All @@ -63,15 +64,15 @@
.line
position: relative
display: flex
height: 100%
align-items: center
margin: 1px 0 0

.fav
position: relative
width: 16px
height: 16px
flex-shrink: 0
margin: 3px 0 0 4px
margin: 0 0 0 4px
cursor: pointer
> svg, > img
position: absolute
Expand All @@ -89,7 +90,7 @@

.inline-info
position: relative
margin: 5px 3px 0 4px
margin: 0 3px 0 4px
font-size: rem(12)
color: var(--frame-fg)
white-space: nowrap
Expand All @@ -100,8 +101,7 @@
.title
position: relative
width: 100%
height: 16px
margin: 3px 0 0 3px
margin: 0 0 1px 4px
font-size: rem(15)
color: var(--frame-fg)
white-space: nowrap
Expand Down
36 changes: 5 additions & 31 deletions src/styles/themes/plain/sidebar/panel.history.styl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
.HistoryPanel .item
position: relative
margin: 0 0 1px
padding: 2px 0 5px
height: 24px
background-color: var(--toolbar-bg)
box-shadow: inset 1px 1px 0 0 var(--border-flare), 0 0 3px 0 #00000016
border-radius: var(--element-roundness)
Expand All @@ -65,14 +65,15 @@
.line
position: relative
display: flex
height: 100%
align-items: center

.fav
position: relative
width: 16px
height: 16px
flex-shrink: 0
margin: 3px 0 0 4px
margin: 0 0 0 4px
cursor: pointer
> svg, > img
position: absolute
Expand All @@ -90,7 +91,7 @@

.inline-info
position: relative
margin: 5px 3px 0 5px
margin: 1px 3px 0 5px
font-size: rem(12)
color: var(--toolbar-fg)
white-space: nowrap
Expand All @@ -101,41 +102,14 @@
.title
position: relative
width: 100%
height: 16px
margin: 3px 0 0 5px
margin: 0 0 1px 5px
font-size: rem(15)
color: var(--toolbar-fg)
white-space: nowrap
overflow: hidden
transition: transform var(--d-fast), color var(--d-fast)
mask: linear-gradient(-90deg, transparent, #000000 12px, #000000)

.info
position: relative
width: 100%
margin: 2px 0 0 5px
font-size: rem(12)
color: var(--toolbar-fg)
white-space: pre
overflow: hidden
mask: linear-gradient(-90deg, transparent, #000000 12px, #000000)
opacity: .7

.type
position: relative
width: 12px
height: 12px
flex-shrink: 0
margin: 4px 2px 0 6px
> svg
position: absolute
top: 0
left: 0
width: 12px
height: 12px
fill: var(--toolbar-fg)
opacity: .7

.HistoryPanel .history-groups .LoadingDots
height: 36px

Expand Down
19 changes: 10 additions & 9 deletions src/styles/themes/proton/sidebar/panel.history.styl
Original file line number Diff line number Diff line change
Expand Up @@ -41,35 +41,37 @@

.HistoryPanel .item
position: relative
margin: 0
padding: 2px 0 6px
padding: 1px 0 0
height: 29px
&:before
content: ''
position: absolute
top: 1px
left: 1px
width: calc(100% - 2px)
left: 2px
width: calc(100% - 4px)
height: calc(100% - 2px)
border-radius: 4px
&:hover:before
background-color: var(--hover-bg)
&:active
background-color: var(--clicked-bg)
box-shadow: inset 0 0 0 1px #00000012
&[data-sel="true"]
&[data-sel="true"]:before
background-color: var(--selected-bg)
box-shadow: inset 0 0 0 1px var(--selected-border)

.line
position: relative
display: flex
height: 100%
align-items: center

.fav
position: relative
width: 16px
height: 16px
flex-shrink: 0
margin: 3px 0 0 4px
margin: 0 0 0 6px
cursor: pointer
> svg, > img
position: absolute
Expand All @@ -87,7 +89,7 @@

.inline-info
position: relative
margin: 5px 3px 0 5px
margin: 0 3px 0 5px
font-size: rem(12)
color: var(--frame-fg)
white-space: nowrap
Expand All @@ -98,8 +100,7 @@
.title
position: relative
width: 100%
height: 16px
margin: 3px 0 0 5px
margin: 0 0 0 5px
font-size: rem(15)
color: var(--frame-fg)
white-space: nowrap
Expand Down

0 comments on commit 354b5ab

Please sign in to comment.