Skip to content

Commit

Permalink
Fix tag list CSS (#2210)
Browse files Browse the repository at this point in the history
* move scrolling to child list

* add some right padding to avoid overlapping with scrollbar

* more small fixes
  • Loading branch information
codebykat authored Jul 16, 2020
1 parent 4dfdd28 commit 5d457a6
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion lib/tag-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
flex-direction: column;
flex: 1 1 auto;
overflow: hidden;
overflow-y: scroll;

.tag-list-title {
display: flex;
Expand All @@ -19,6 +18,7 @@
align-items: center;
line-height: 1.25em;
margin-bottom: 0.25em;
box-shadow: 0 1px 1px lightgray;

h2 {
margin-bottom: 0;
Expand All @@ -42,12 +42,34 @@
opacity: 1;
}
}

&.tag-list-editing .tag-list-items {
padding-inline-start: 6px;
}
}

.tag-list-items {
flex: 1 1 auto;
list-style: none;
padding-inline-start: 20px;
padding-inline-end: 16px;
padding-top: 0;
padding-bottom: 0;
overflow-y: scroll;
margin: 0;
padding-top: 0;
padding-bottom: 0;

svg {
cursor: pointer;
}

.icon-trash {
margin-right: 5px;
&:hover {
color: red;
}
}
}

.tag-list-input {
Expand Down

0 comments on commit 5d457a6

Please sign in to comment.