From 10754a14c8d0dda68f2484e523f6901b3e7daee3 Mon Sep 17 00:00:00 2001
From: geireann <60007097+geireann@users.noreply.github.com>
Date: Fri, 19 Jun 2020 14:14:28 +0800
Subject: css changes and bug fixes
Presentation
Undo / Redo
Image upload
Record Audio
---
src/client/views/collections/CollectionViewChromes.scss | 6 ++++++
1 file changed, 6 insertions(+)
(limited to 'src/client/views/collections/CollectionViewChromes.scss')
diff --git a/src/client/views/collections/CollectionViewChromes.scss b/src/client/views/collections/CollectionViewChromes.scss
index f85cbfee2..54ee4ab3b 100644
--- a/src/client/views/collections/CollectionViewChromes.scss
+++ b/src/client/views/collections/CollectionViewChromes.scss
@@ -80,6 +80,12 @@
// margin-top: 10px;
}
+ @media only screen and (max-width: 1000) {
+ .collectionViewBaseChrome-collapse {
+ display: none;
+ }
+ }
+
.collectionViewBaseChrome-template,
.collectionViewBaseChrome-viewModes {
display: grid;
--
cgit v1.2.3-70-g09d2
From 790d41009a678f560cd3b78e86069251e494cfd1 Mon Sep 17 00:00:00 2001
From: geireann <60007097+geireann@users.noreply.github.com>
Date: Mon, 22 Jun 2020 14:55:00 +0800
Subject: updated css width property for mobile
---
src/client/util/CurrentUserUtils.ts | 2 +-
src/client/util/SettingsManager.scss | 2 +-
src/client/views/AntimodeMenu.scss | 16 ++--
.../views/collections/CollectionStackingView.scss | 2 +-
.../views/collections/CollectionViewChromes.scss | 2 +-
.../collectionFreeForm/InkOptionsMenu.scss | 18 ++--
src/client/views/nodes/AudioBox.scss | 2 +-
src/client/views/nodes/PDFBox.scss | 2 +-
src/client/views/nodes/PresBox.scss | 2 +-
.../views/presentationview/PresElementBox.scss | 2 +-
src/mobile/AudioUpload.scss | 95 ----------------------
src/mobile/MobileInterface.tsx | 10 +--
src/mobile/MobileMenu.scss | 24 ++++--
13 files changed, 45 insertions(+), 134 deletions(-)
(limited to 'src/client/views/collections/CollectionViewChromes.scss')
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index b7da4ae2f..5edb2225f 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -465,7 +465,7 @@ export class CurrentUserUtils {
static setupMobileButtons(doc?: Doc, buttons?: string[]) {
const docProtoData: { title: string, icon: string, drag?: string, ignoreClick?: boolean, click?: string, ischecked?: string, activePen?: Doc, backgroundColor?: string, info: string, dragFactory?: Doc }[] = [
- { title: "LIBRARY", icon: "bars", click: 'switchToLibrary()', backgroundColor: "#ffd6d6", info: "Navigate and access all of your documents within their respective collections." },
+ { title: "WORKSPACES", icon: "folder-open", click: 'openWorkspaces()', backgroundColor: "#ffd6d6", info: "Access your Workspaces from your mobile, and navigate through all of your documents. " },
{ title: "RECORD", icon: "microphone", click: 'openMobileAudio()', backgroundColor: "#ffbfbf", info: "Use your phone to record and upload audio onto Dash Web." },
{ title: "UPLOAD", icon: "upload", click: 'uploadImageMobile()', backgroundColor: "#ff9e9e", info: "Upload images or videos from your mobile device so they can be accessed on Dash Web." },
{ title: "PRESENTATION", icon: "desktop", click: 'openMobilePresentation()', backgroundColor: "#ff8080", info: "Use your phone as a remote for you presentation." },
diff --git a/src/client/util/SettingsManager.scss b/src/client/util/SettingsManager.scss
index 1eac9303b..0116c5294 100644
--- a/src/client/util/SettingsManager.scss
+++ b/src/client/util/SettingsManager.scss
@@ -135,7 +135,7 @@
}
}
-@media only screen and (max-width: 1000px) {
+@media only screen and (max-device-width: 480px) {
.settings-interface {
background-color: whitesmoke !important;
color: grey;
diff --git a/src/client/views/AntimodeMenu.scss b/src/client/views/AntimodeMenu.scss
index 170631422..43f45fb1c 100644
--- a/src/client/views/AntimodeMenu.scss
+++ b/src/client/views/AntimodeMenu.scss
@@ -41,7 +41,7 @@
}
}
-@media only screen and (max-width: 1000px) {
+@media only screen and (max-device-width: 480px) {
.antimodeMenu-cont {
position: absolute;
z-index: 10000;
@@ -51,31 +51,31 @@
border-radius: 0px 6px 6px 6px;
// overflow: hidden;
display: flex;
-
+
&.with-rows {
flex-direction: column-reverse;
}
-
+
.antimodeMenu-row {
display: flex;
height: 100%;
- width:100%;
+ width: 100%;
}
-
+
.antimodeMenu-button {
background-color: transparent;
width: 100px;
height: 100px;
-
+
&.active {
background-color: #121212;
}
}
-
+
.antimodeMenu-button:hover {
background-color: #121212;
}
-
+
.antimodeMenu-dragger {
height: 100%;
transition: width .2s;
diff --git a/src/client/views/collections/CollectionStackingView.scss b/src/client/views/collections/CollectionStackingView.scss
index 98efdfd23..342773db8 100644
--- a/src/client/views/collections/CollectionStackingView.scss
+++ b/src/client/views/collections/CollectionStackingView.scss
@@ -424,7 +424,7 @@
}
}
-@media only screen and (max-width: 1000px) {
+@media only screen and (max-device-width: 480px) {
.collectionStackingView .collectionStackingView-columnDragger,
.collectionMasonryView .collectionStackingView-columnDragger {
diff --git a/src/client/views/collections/CollectionViewChromes.scss b/src/client/views/collections/CollectionViewChromes.scss
index 54ee4ab3b..ec2d78735 100644
--- a/src/client/views/collections/CollectionViewChromes.scss
+++ b/src/client/views/collections/CollectionViewChromes.scss
@@ -80,7 +80,7 @@
// margin-top: 10px;
}
- @media only screen and (max-width: 1000) {
+ @media only screen and (max-device-width: 480px) {
.collectionViewBaseChrome-collapse {
display: none;
}
diff --git a/src/client/views/collections/collectionFreeForm/InkOptionsMenu.scss b/src/client/views/collections/collectionFreeForm/InkOptionsMenu.scss
index 72fdf5af9..4855dfea8 100644
--- a/src/client/views/collections/collectionFreeForm/InkOptionsMenu.scss
+++ b/src/client/views/collections/collectionFreeForm/InkOptionsMenu.scss
@@ -33,39 +33,39 @@
}
}
-@media only screen and (max-width: 1000px) {
+@media only screen and (max-device-width: 480px) {
.antimodeMenu-button {
.color-preview {
width: 100%;
height: 100%;
}
-
+
}
-
+
.sketch-picker {
background: #323232;
-
+
.flexbox-fit {
background: #323232;
}
}
-
+
.btn-group {
display: grid;
grid-template-columns: auto auto;
/* Make the buttons appear below each other */
}
-
+
.btn2-group {
display: block;
background: #323232;
grid-template-columns: auto;
-
+
/* Make the buttons appear below each other */
.antimodeMenu-button {
background: #323232;
display: block;
-
+
}
}
-}
+}
\ No newline at end of file
diff --git a/src/client/views/nodes/AudioBox.scss b/src/client/views/nodes/AudioBox.scss
index 61ce4bd13..43dd698ad 100644
--- a/src/client/views/nodes/AudioBox.scss
+++ b/src/client/views/nodes/AudioBox.scss
@@ -174,7 +174,7 @@
}
-@media only screen and (max-width: 1000px) {
+@media only screen and (max-device-width: 480px) {
.audiobox-container,
.audiobox-container-interactive {
diff --git a/src/client/views/nodes/PDFBox.scss b/src/client/views/nodes/PDFBox.scss
index 1a31d2916..b19ddf1f5 100644
--- a/src/client/views/nodes/PDFBox.scss
+++ b/src/client/views/nodes/PDFBox.scss
@@ -224,7 +224,7 @@
}
}
-@media only screen and (max-width: 600px) {
+@media only screen and (max-device-width: 480px) {
.pdfBox .pdfBox-ui .pdfBox-settingsCont .pdfBox-settingsButton,
.pdfBox-interactive .pdfBox-ui .pdfBox-settingsCont .pdfBox-settingsButton {
diff --git a/src/client/views/nodes/PresBox.scss b/src/client/views/nodes/PresBox.scss
index e62aa48fb..1261cbfdd 100644
--- a/src/client/views/nodes/PresBox.scss
+++ b/src/client/views/nodes/PresBox.scss
@@ -81,7 +81,7 @@
}
}
-@media only screen and (max-width: 1000px) {
+@media only screen and (max-device-width: 480px) {
.presBox-cont .presBox-buttons {
position: absolute;
top: 70%;
diff --git a/src/client/views/presentationview/PresElementBox.scss b/src/client/views/presentationview/PresElementBox.scss
index 99fe2a3ba..79532995e 100644
--- a/src/client/views/presentationview/PresElementBox.scss
+++ b/src/client/views/presentationview/PresElementBox.scss
@@ -106,7 +106,7 @@
z-index: 2;
}
-@media only screen and (max-width: 1000px) {
+@media only screen and (max-device-width: 480px) {
.presElementBox-buttons {
display: inline-flex;
position: relative;
diff --git a/src/mobile/AudioUpload.scss b/src/mobile/AudioUpload.scss
index 5f0ba465a..9fe442e55 100644
--- a/src/mobile/AudioUpload.scss
+++ b/src/mobile/AudioUpload.scss
@@ -7,77 +7,6 @@
align-items: center;
max-width: 400px;
min-width: 400px;
-
- .upload_label {
- font-size: 3em;
- font-weight: 700;
- color: white;
- background-color: black;
- display: inline-block;
- margin: 10;
- width: 100%;
- border-radius: 10px;
- }
-
- .file {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- direction: ltr;
- }
-
- .upload_label:hover {
- background-color: darkred;
- }
-
- .button_file {
- text-align: center;
- height: 50%;
- width: 50%;
- background-color: paleturquoise;
- color: grey;
- font-size: 3em;
- }
-
- .inputfile {
- width: 0.1px;
- height: 0.1px;
- opacity: 0;
- overflow: hidden;
- position: absolute;
- z-index: -1;
- }
-
- .inputfile+label {
- font-size: 3em;
- font-weight: 700;
- color: white;
- background-color: black;
- display: inline-block;
- margin: 10px;
- width: 100%;
- border-radius: 10px;
- }
-
- .inputfile:focus+label,
- .inputfile+label:hover {
- background-color: darkred;
- }
-
- .status {
- font-size: 2em;
- }
-
-}
-
-.backgroundUpload {
- height: 100vh;
- top: 0;
- z-index: 999;
- width: 100vw;
- position: absolute;
- background-color: lightgrey;
- opacity: 0.4;
}
.audio-upload {
@@ -92,28 +21,4 @@
height: 100vh;
width: 100vw;
opacity: 1;
-}
-
-.uploadContainer {
- top: 40;
- position: absolute;
- z-index: 1000;
- height: 20vh;
- width: 80vw;
- opacity: 1;
-}
-
-.loadingImage {
- display: inline-flex;
- width: max-content;
-}
-
-.loadingSlab {
- position: relative;
- width: 30px;
- height: 30px;
- margin: 10;
- border-radius: 20px;
- opacity: 0.3;
- background-color: black;
}
\ No newline at end of file
diff --git a/src/mobile/MobileInterface.tsx b/src/mobile/MobileInterface.tsx
index 84a5975cb..ceda74da2 100644
--- a/src/mobile/MobileInterface.tsx
+++ b/src/mobile/MobileInterface.tsx
@@ -415,7 +415,7 @@ export class MobileInterface extends React.Component {
onClick={this.returnMain}
style={{ opacity: 0.7 }}>