diff --git a/src/components/Extra.vue b/src/components/Extra.vue
index 746c726e..13eb4a6e 100644
--- a/src/components/Extra.vue
+++ b/src/components/Extra.vue
@@ -11,7 +11,7 @@
-
+
@@ -39,9 +39,9 @@
-
+
-
+
@@ -153,6 +153,57 @@
+
+
+
+
+
+ {
+ if(simulationArea.shiftDown == false) {
+ simulationArea.shiftDown = true;
+ }
+ else {
+ simulationArea.shiftDown = false;
+ e.preventDefault();
+ }
+ }"
+ :style="{bottom: simulatorMobileStore.showElementsPanel ? '10rem' : '2rem'}"
+ v-if="simulatorMobileStore.showMobileView"
+ >
+
+
+
+ {
+ simulationArea.shiftDown = false;
+ simulatorMobileStore.isCopy = true;
+ }"
+ :style="{bottom: simulatorMobileStore.showElementsPanel ? '16rem' : '8rem'}"
+ v-if="simulatorMobileStore.showMobileView && !simulatorMobileStore.isCopy"
+ >
+
+
+
+ {
+ simulatorMobileStore.isCopy = false;
+ }"
+ :style="{bottom: simulatorMobileStore.showElementsPanel ? '16rem' : '8rem'}"
+ v-if="simulatorMobileStore.showMobileView && simulatorMobileStore.isCopy"
+ >
+
+
+
+
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/src/components/Panels/ElementsPanel/ElementsPanelMobile.vue b/src/components/Panels/ElementsPanel/ElementsPanelMobile.vue
new file mode 100644
index 00000000..74240b81
--- /dev/null
+++ b/src/components/Panels/ElementsPanel/ElementsPanelMobile.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+
+ {{ category[0] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/ReportIssue/ReportIssueButton.vue b/src/components/ReportIssue/ReportIssueButton.vue
index 128b6288..69148088 100644
--- a/src/components/ReportIssue/ReportIssueButton.vue
+++ b/src/components/ReportIssue/ReportIssueButton.vue
@@ -5,6 +5,7 @@
class="btn btn-primary text-light"
data-toggle="modal"
data-target=".issue"
+ :style="{ bottom: simulatorMobileStore.showElementsPanel ? '250px' : '120px' }"
@click="openReportingModal"
>
{{
@@ -15,6 +16,9 @@
diff --git a/src/store/simulatorMobileStore.ts b/src/store/simulatorMobileStore.ts
new file mode 100644
index 00000000..75c73486
--- /dev/null
+++ b/src/store/simulatorMobileStore.ts
@@ -0,0 +1,18 @@
+import { defineStore } from "pinia";
+import { ref } from "vue";
+
+export const useSimulatorMobileStore = defineStore("simulatorMobileStore", () => {
+ const showElementsPanel = ref(false);
+ const minWidthToShowSidebar = ref(992);
+ const showMobileView = ref(false);
+ const isCopy = ref(false);
+
+ showMobileView.value = window.innerWidth < minWidthToShowSidebar.value ? true : false
+
+ return {
+ showElementsPanel,
+ minWidthToShowSidebar,
+ showMobileView,
+ isCopy
+ };
+});
\ No newline at end of file
diff --git a/src/styles/color_theme.scss b/src/styles/color_theme.scss
index 5bdc9fff..69855bfc 100644
--- a/src/styles/color_theme.scss
+++ b/src/styles/color_theme.scss
@@ -138,6 +138,11 @@
box-shadow: 0px 0px 10px #4545457f;
}
+.draggable-panel-mobile {
+ background: white;
+ box-shadow: 0px 0px 10px #4545457f;
+}
+
.panel-header {
color: var(--text-panel);
background: var(--primary);
diff --git a/src/styles/simulator.scss b/src/styles/simulator.scss
index af0fe667..c3f6ef1c 100644
--- a/src/styles/simulator.scss
+++ b/src/styles/simulator.scss
@@ -23,7 +23,6 @@ $fa-font-path: '../../node_modules/@fortawesome/fontawesome-free/webfonts';
position: fixed;
right: -119px;
text-decoration: none;
- bottom: 30px;
transition: 0.3s;
width: 160px;
z-index: 999;