+
-
+
-
@@ -127,13 +127,13 @@
caMicroscope
-
-
diff --git a/apps/table.js b/apps/table.js
index a84ee48aa..f90877af0 100644
--- a/apps/table.js
+++ b/apps/table.js
@@ -36,7 +36,7 @@ function validateForm(callback) {
finishUploadSuccess = false;
$('#check_btn').hide();
$('#post_btn').hide();
- changeStatus('UPLOAD', 'Please choose a file first');
+ $('#alertContainer').html('
Please enter slide name
');
return false;
}
// Check if slide name is empty
@@ -44,14 +44,14 @@ function validateForm(callback) {
finishUploadSuccess = false;
$('#check_btn').hide();
$('#post_btn').hide();
- changeStatus('UPLOAD', 'Please enter slide name');
+ $('#alertContainer').html('
Please enter slide name
');
return false;
}
// Sanitizing input
slide.value = sanitize(slide.value);
// Checking if silde with given name already exists
if (existingSlideNames.includes(slide.value)) {
- changeStatus('UPLOAD', 'Slide with given name already exists');
+ $('#alertContainer').html('
Slide with given name already exists
');
finishUploadSuccess = false;
$('#check_btn').hide();
$('#post_btn').hide();
diff --git a/components/toolbar/toolbar.css b/components/toolbar/toolbar.css
index bbb93c0b4..4ab131a40 100644
--- a/components/toolbar/toolbar.css
+++ b/components/toolbar/toolbar.css
@@ -71,7 +71,7 @@ ul.drop_down {
}
ul.tools > li:hover ul.drop_down {
- flex-direction: column;
+ flex-direction: row; /* Consumes less space */
display: flex;
width: fit-content;
width: -moz-fit-content;
diff --git a/components/toolbar/toolbar.js b/components/toolbar/toolbar.js
index a50a6876d..b0b69a891 100644
--- a/components/toolbar/toolbar.js
+++ b/components/toolbar/toolbar.js
@@ -155,12 +155,11 @@ CaToolbar.prototype.__createBtn = function(options) {
btn.classList.add('md-24');
btn.textContent = options.icon;
if (options.title) {
- btn.title = options.title;
tippy(btn, {
content: options.title,
- placement: 'right',
- delay: 300,
- theme: 'light-border',
+ placement: 'bottom',
+ delay: 200,
+ theme: 'dark',
});
}
li.appendChild(btn);
@@ -214,12 +213,11 @@ CaToolbar.prototype.__createCheck = function(options) {
icon.textContent = options.icon;
icon.htmlFor = id;
if (options.title) {
- icon.title = options.title;
tippy(icon, {
content: options.title,
- placement: 'right',
+ placement: 'bottom',
delay: 300,
- theme: 'light-border',
+ theme: 'dark',
});
}
li.appendChild(icon);
@@ -291,12 +289,11 @@ CaToolbar.prototype.__createRadio = function(options) {
icon.htmlFor = id;
if (options.title) {
- icon.title = options.title;
tippy(icon, {
content: options.title,
- placement: 'right',
+ placement: 'bottom',
delay: 300,
- theme: 'light-border',
+ theme: 'dark',
});
}
@@ -337,12 +334,11 @@ CaToolbar.prototype.__createMultiStateBtns = function(options) {
icon.dataset.state = 0;
icon.textContent = options.icon;
if (options.title) {
- icon.title = options.title;
tippy(icon, {
content: options.title,
- placement: 'right',
+ placement: 'bottom',
delay: 300,
- theme: 'light-border',
+ theme: 'dark',
});
}
li.appendChild(icon);
@@ -390,12 +386,11 @@ CaToolbar.prototype.__createMultiDropDown = function(options) {
icon.textContent = options.icon;
icon.htmlFor = id;
if (options.title) {
- icon.title = options.title;
tippy(icon, {
content: options.title,
- placement: 'right',
+ placement: 'bottom',
delay: 300,
- theme: 'light-border',
+ theme: 'dark',
});
}
li.appendChild(icon);
@@ -518,12 +513,11 @@ CaToolbar.prototype.__createDropDown = function(options) {
icon.textContent = options.icon;
icon.htmlFor = id;
if (options.title) {
- icon.title = options.title;
tippy(icon, {
content: options.title,
- placement: 'right',
+ placement: 'left-start',
delay: 300,
- theme: 'light-border',
+ theme: 'dark',
});
}
li.appendChild(icon);