commit 489a8cefec6d0a37e786f238bbd7b4015a8a6805
parent fe5a3ab43c8dd8313f33a215e8ebc9e444a470dc
Author: Henry Unite <unitehenry@gmail.com>
Date: Tue, 8 Sep 2020 09:05:00 -0400
Merge branch 'dev'
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/package.json b/package.json
@@ -1,7 +1,7 @@
{
"name": "@striven-erp/striven-editor",
"private": false,
- "version": "3.6.5",
+ "version": "3.6.6",
"description": "The editor used for the Striven ERP system.",
"main": "./dist",
"scripts": {
diff --git a/src/striveneditor.js b/src/striveneditor.js
@@ -1860,10 +1860,11 @@ export default class StrivenEditor {
[...that.toolbar.getElementsByClassName('se-toolbar-selection')]
.forEach(sl => {
- sl.style.display = isResponsive ? 'none' : null;
+ const respond = that.editor.offsetWidth < 500;
+ sl.style.display = respond ? 'none' : null;
const { nextElementSibling } = sl;
if(nextElementSibling.classList.contains('se-divider-section')) {
- nextElementSibling.style.display = isResponsive ? 'none' : null;
+ nextElementSibling.style.display = respond ? 'none' : null;
}
})