Browse Source
Merge pull request #870 from JuanTincho/Large-block-label
Hide large labels on blocks
pull/881/head
Artur Arseniev
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
2 deletions
-
src/block_manager/view/BlockView.js
-
src/styles/scss/_gjs_blocks.scss
|
|
@ -70,7 +70,7 @@ module.exports = Backbone.View.extend({ |
|
|
const className = `${pfx}block`; |
|
|
const className = `${pfx}block`; |
|
|
const label = this.model.get('label'); |
|
|
const label = this.model.get('label'); |
|
|
el.className += ` ${className} ${pfx}one-bg ${pfx}four-color-h`; |
|
|
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); |
|
|
hasDnd(this.em) && el.setAttribute('draggable', true); |
|
|
return this; |
|
|
return this; |
|
|
} |
|
|
} |
|
|
|
|
|
@ -31,7 +31,7 @@ |
|
|
width: 45%; |
|
|
width: 45%; |
|
|
padding: 1em; |
|
|
padding: 1em; |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
height: 90px; |
|
|
height: 103px; |
|
|
cursor: all-scroll; |
|
|
cursor: all-scroll; |
|
|
font-size: 11px; |
|
|
font-size: 11px; |
|
|
font-weight: lighter; |
|
|
font-weight: lighter; |
|
|
@ -71,6 +71,8 @@ |
|
|
font-size: 0.65rem; |
|
|
font-size: 0.65rem; |
|
|
font-weight: normal; |
|
|
font-weight: normal; |
|
|
font-family: Helvetica, sans-serif; |
|
|
font-family: Helvetica, sans-serif; |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
text-overflow: ellipsis; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.#{$app-prefix}block.#{$app-prefix}bdrag { |
|
|
.#{$app-prefix}block.#{$app-prefix}bdrag { |
|
|
|