diff --git a/apps/table.css b/apps/table.css index 7653bb41e..4c3a16981 100644 --- a/apps/table.css +++ b/apps/table.css @@ -174,6 +174,7 @@ nav li:not(.active):hover{ .bg-gray { background-color: #eee; } + @media (max-width: 640px) { #dropNot { top: 50px; @@ -190,7 +191,46 @@ nav li:not(.active):hover{ .message { font-size: 13px; } +} +@media (max-width: 1200px) { + .btn-style-group{ + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + margin: auto; + } + .custom-table { + display: flex; + justify-content: center; + align-items: center; + } + } +@media (max-width: 1087px) { + + .custom-table { + width: 90%; + } + +} +@media (max-width: 900px) { + .custom-table { + width: 75%; + } +} +@media (max-width: 1027px) { + .btn-style-group{ + width: auto; + } + .custom-table { + overflow-x: auto; + width: 80%; + position: relative; + } + +} + #dropNot { top: 60px; left: 0px; diff --git a/apps/table.html b/apps/table.html index 0ad2b8cb1..95fad063a 100644 --- a/apps/table.html +++ b/apps/table.html @@ -92,10 +92,10 @@

caMicroscope

-
-
+
+
-
+
  • @@ -127,13 +127,13 @@

    caMicroscope

-
+
-
+
+
- + - + - + - + +
- +
FileFile - - + + - - Upload from URL - - + +
FilenameFilename
TokenToken
SlidenameSlidename
Filter (leave blank for public)Filter (leave blank for public)
+ value="Finish Upload" onclick="validateForm(finishUpload)"> UPLOAD
@@ -281,7 +299,7 @@

Steps for uploading.

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(''); 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(''); 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(''); 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);