Skip to content

Commit

Permalink
Merge pull request #870 from JuanTincho/Large-block-label
Browse files Browse the repository at this point in the history
Hide large labels on blocks
  • Loading branch information
artf authored Feb 18, 2018
2 parents 50cc585 + c23c951 commit 4079db9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/block_manager/view/BlockView.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = Backbone.View.extend({
const className = `${pfx}block`;
const label = this.model.get('label');
el.className += ` ${className} ${pfx}one-bg ${pfx}four-color-h`;
el.innerHTML = `<div class="${className}-label">${label}</div>`;
el.innerHTML = `<div title="${label}" class="${className}-label">${label}</div>`;
hasDnd(this.em) && el.setAttribute('draggable', true);
return this;
}
Expand Down
4 changes: 3 additions & 1 deletion src/styles/scss/_gjs_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
width: 45%;
padding: 1em;
box-sizing: border-box;
height: 90px;
height: 103px;
cursor: all-scroll;
font-size: 11px;
font-weight: lighter;
Expand Down Expand Up @@ -71,6 +71,8 @@
font-size: 0.65rem;
font-weight: normal;
font-family: Helvetica, sans-serif;
overflow: hidden;
text-overflow: ellipsis;
}

.#{$app-prefix}block.#{$app-prefix}bdrag {
Expand Down

0 comments on commit 4079db9

Please sign in to comment.