From d3bda619043c0cb1983f26770fb84ac3a31ba0bd Mon Sep 17 00:00:00 2001 From: emmanuel Date: Tue, 3 Oct 2023 14:51:02 +0000 Subject: [PATCH] CLASSROOMIO-T-184:Made the sidebar draggable CLASSROOMIO-T-184:removed console.log Merge branch 'CLASSROOMIO-T-184' of https://gitlab.com/thenextgreat/classroomio into CLASSROOMIO-T-184 Merge branch 'main' into CLASSROOMIO-T-184 CLASSROOMIO-T-184:Made updates to the resizeable sidebars CLASSROOMIO-T-184:Making the resizable sidebar better CLASSROOMIO-T-184: fix server side error and ts support Merge branch 'main' into CLASSROOMIO-T-184 CLASSROOMIO-T-184:Made the slidebar draggable Co-authored-by: Ifeanyi Nwosu Co-authored-by: Rotimi Best Merge-request: CLASSROOMIO-MR-81 Merged-by: Best Admin --- .../components/Poll/components/Poll.svelte | 4 +- src/lib/components/Apps/index.svelte | 129 +++++++++++++++++- .../Course/components/Navigation/index.svelte | 106 +++++++++++++- src/lib/components/Navigation/app.svelte | 12 +- .../components/Org/ResizeableSidebar.svelte | 80 +++++++++++ src/lib/components/Org/store.js | 4 + 6 files changed, 319 insertions(+), 16 deletions(-) create mode 100644 src/lib/components/Org/ResizeableSidebar.svelte diff --git a/src/lib/components/Apps/components/Poll/components/Poll.svelte b/src/lib/components/Apps/components/Poll/components/Poll.svelte index 9929de8f..b04895fc 100644 --- a/src/lib/components/Apps/components/Poll/components/Poll.svelte +++ b/src/lib/components/Apps/components/Poll/components/Poll.svelte @@ -46,7 +46,7 @@ } -
+
{#if selectedOptionToView}
@@ -67,7 +67,7 @@ {/each}
{:else} -
+

{poll.question} diff --git a/src/lib/components/Apps/index.svelte b/src/lib/components/Apps/index.svelte index 0777f47f..4418634d 100644 --- a/src/lib/components/Apps/index.svelte +++ b/src/lib/components/Apps/index.svelte @@ -1,5 +1,5 @@ -
+
{#if !!selectedApp} -
+
{#if selectedApp === APPS_CONSTANTS.APPS.QANDA} {:else if selectedApp === APPS_CONSTANTS.APPS.LIVE_CHAT} @@ -138,8 +237,25 @@ } & .app { - width: 400px; - transition: all 1s ease-out; + width: 100%; + position: relative; + overflow: auto; + } + } + + @media screen and (min-width: 768px) and (max-width: 1023px) { + .app { + min-width: 280px; + max-width: 300px; + width: 300px; + position: relative; + overflow: auto; + } + } + + @media screen and (max-width: 767px) { + .app { + width: 100%; position: relative; overflow: auto; } @@ -187,8 +303,7 @@ } & .app { - width: 400px; - transition: all 1s ease-out; + width: 100%; position: relative; overflow: auto; } diff --git a/src/lib/components/Course/components/Navigation/index.svelte b/src/lib/components/Course/components/Navigation/index.svelte index a7d3459b..c6da4907 100644 --- a/src/lib/components/Course/components/Navigation/index.svelte +++ b/src/lib/components/Course/components/Navigation/index.svelte @@ -1,5 +1,5 @@