From 7d07c8aadc0855e9997715dd80e9146308d27104 Mon Sep 17 00:00:00 2001 From: Bernhard Prattes Date: Thu, 17 Dec 2020 19:19:12 +0100 Subject: [PATCH] BLOCKS-229 fix scripts icon --- assets/scripts.svg | 5 ----- src/library/css/share.css | 4 ++++ src/library/js/blocks/categories/control.js | 19 ------------------- src/library/js/blocks/categories/device.js | 2 +- src/library/js/share/share.js | 15 +++++++++------ 5 files changed, 14 insertions(+), 31 deletions(-) delete mode 100644 assets/scripts.svg diff --git a/assets/scripts.svg b/assets/scripts.svg deleted file mode 100644 index 88159c15..00000000 --- a/assets/scripts.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/src/library/css/share.css b/src/library/css/share.css index feba29ac..7cf81c74 100644 --- a/src/library/css/share.css +++ b/src/library/css/share.css @@ -101,6 +101,10 @@ img { cursor: pointer; } +.catblocks-tab-script { + height: 2rem; +} + .catblocks-tab-icon { height: 2rem; font-size: 2rem; diff --git a/src/library/js/blocks/categories/control.js b/src/library/js/blocks/categories/control.js index fdd295a8..a1b764be 100644 --- a/src/library/js/blocks/categories/control.js +++ b/src/library/js/blocks/categories/control.js @@ -462,24 +462,5 @@ export default { name: 'DROPDOWN_INFO' } ] - }, - OpenUrlBrick: { - message0: '%{BKY_CONTROL_OPEN_URL}', - args0: [ - { - type: 'field_input', - name: 'brick_open_url_edit_text', - text: 'unset' - }, - { - type: 'field_image', - src: `${document.location.pathname}media/info_icon.svg`, - height: 24, - width: 24, - alt: '(i)', - flip_rtl: true, - name: 'brick_open_url_edit_text_INFO' - } - ] } }; diff --git a/src/library/js/blocks/categories/device.js b/src/library/js/blocks/categories/device.js index ba4b05f4..c4d1e9df 100644 --- a/src/library/js/blocks/categories/device.js +++ b/src/library/js/blocks/categories/device.js @@ -137,7 +137,7 @@ export default { ResetTimerBrick: { message0: '%{BKY_DEVICE_RESET_TIMER}' }, - TouchAndSlide: { + TouchAndSlideBrick: { message0: '%{BKY_CONTROL_TOUCH_AND_SLIDE}', args0: [ { diff --git a/src/library/js/share/share.js b/src/library/js/share/share.js index ef80fe2c..0d4f3aea 100644 --- a/src/library/js/share/share.js +++ b/src/library/js/share/share.js @@ -1109,11 +1109,6 @@ export class Share { const liScript = this.generateOrInjectNewDOM(ul, 'li', { class: 'nav-item' }); - let mediapath = `${this.config.shareRoot}${this.config.media}`; - // full link or absolute path given - if (this.config.media.startsWith('http') || this.config.media.startsWith('/')) { - mediapath = this.config.media; - } this.generateOrInjectNewDOM( liScript, @@ -1127,7 +1122,15 @@ export class Share { 'aria-controls': 'scripts', 'aria-selected': 'true' }, - ` (${object.scriptList.length})` + ` +
+ + + + + + (${object.scriptList.length}) +
` ); }