styles: make note flags wrap

This commit is contained in:
Antonella Sgarlatta
2021-06-24 14:35:50 -03:00
parent e65861485f
commit 5561ab65ff
2 changed files with 3 additions and 1 deletions

View File

@@ -132,7 +132,7 @@
ng-class="{'selected' : self.isNoteSelected(note.uuid) }"
ng-click='self.selectNote(note, true)'
)
.note-flags(ng-show='self.noteFlags[note.uuid].length > 0')
.note-flags.flex.flex-wrap(ng-show='self.noteFlags[note.uuid].length > 0')
.flag(ng-class='flag.class', ng-repeat='flag in self.noteFlags[note.uuid]')
.label {{flag.text}}
.name(ng-show='note.title')

View File

@@ -169,6 +169,7 @@
flex-direction: row;
align-items: center;
margin-bottom: 8px;
margin-top: -4px;
.flag {
padding: 4px;
@@ -176,6 +177,7 @@
padding-right: 6px;
border-radius: var(--sn-stylekit-general-border-radius);
margin-right: 4px;
margin-top: 4px;
&.info {
background-color: var(--sn-stylekit-info-color);