Fixed breadcrumbs calculation and actions flow

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2017-12-13 11:51:54 +01:00
parent dc8809e754
commit 7a9e65ceed
No known key found for this signature in database
GPG key ID: FB5ACEED51955BF8
2 changed files with 6 additions and 1 deletions

View file

@ -21,6 +21,11 @@
.actions.creatable {
position: relative;
z-index: -30;
display: flex;
flex: 1 1;
.button:not(:last-child) {
margin-right: 3px;
}
}
#trash {

View file

@ -331,7 +331,7 @@
// Used for testing since this.$el.parent fails
if (!this.availableWidth) {
this.usedWidth = this.$el.parent().width() - (this.$el.parent().find('.button').length + 1) * 44;
this.usedWidth = this.$el.parent().width() - this.$el.parent().find('.actions.creatable').width();
} else {
this.usedWidth = this.availableWidth;
}