From 64b2316478c8096c050674c5097c37205a3f3bbc Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 29 Dec 2022 09:16:22 +0200 Subject: [PATCH 001/118] Update full.css --- full.css | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/full.css b/full.css index efa393df4b..adc750ef42 100644 --- a/full.css +++ b/full.css @@ -1788,25 +1788,15 @@ body.mobile .context-menu { } .live-view-menu { - left: 11px; - top: 41px; - z-index: 1001; - margin-top: 7px; - padding: 0; + left: 7px; + top: 44px; + box-shadow: 0 8px 16px rgb(0 0 0 / 24%), inset 0 0 0 1px hsl(228deg 13% 19%); } body:not(.mobile) .live-view-menu { display: none; } -.live-view-menu:not(.visible) { - padding: 2px 2px 2px 0px; -} - -.live-view-menu:not(.visible) .icon { - padding: 9.5px 13px; -} - .dialog-wrapper { position: fixed; From 5455fc6dade6fbd7a4c36aff9e3c1100a0845f0b Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 29 Dec 2022 09:17:11 +0200 Subject: [PATCH 002/118] Update full.css --- full.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/full.css b/full.css index adc750ef42..1179bbde0a 100644 --- a/full.css +++ b/full.css @@ -1797,6 +1797,10 @@ body:not(.mobile) .live-view-menu { display: none; } +.live-view-menu .icon:active { + background: rgb(39 40 44); +} + .dialog-wrapper { position: fixed; From 76cf3c9da2a1c542ec43cdf5f33b2fda9572405f Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Thu, 29 Dec 2022 09:17:39 +0200 Subject: [PATCH 003/118] Update full.css --- full.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/full.css b/full.css index 1179bbde0a..4647d4924b 100644 --- a/full.css +++ b/full.css @@ -1798,7 +1798,7 @@ body:not(.mobile) .live-view-menu { } .live-view-menu .icon:active { - background: rgb(39 40 44); + background: hsl(228deg 6% 16%); } From eb454ee91fc83135ae0050852f32605bce937360 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 1 Jan 2023 08:37:42 +0200 Subject: [PATCH 004/118] Update utils.js --- utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.js b/utils.js index ab909b9d94..92e12e8c54 100644 --- a/utils.js +++ b/utils.js @@ -927,8 +927,8 @@ axios = { // HTML Icons const repoIcon = ''; -const fileIcon = ''; -const folderIcon = ''; +const fileIcon = ''; +const folderIcon = ''; const imageIcon = ''; const videoIcon = ''; From 0c73887a9fa8bfb3d541e8dea2df20db1a5cee04 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 1 Jan 2023 08:38:46 +0200 Subject: [PATCH 005/118] Update full.html --- full.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/full.html b/full.html index 694d494059..bb4cf3993e 100644 --- a/full.html +++ b/full.html @@ -80,8 +80,8 @@
From 8842c5b0376ddae42eb9a850ac48c93627fa1902 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 1 Jan 2023 08:49:37 +0200 Subject: [PATCH 006/118] Update utils.js --- utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils.js b/utils.js index 92e12e8c54..68c5d45c8c 100644 --- a/utils.js +++ b/utils.js @@ -14,6 +14,8 @@ const body = document.body, floatLogo = sidebarOpen.querySelector('.logo'), pushWrapper = bottomFloat.querySelector('.push-wrapper'), floatDownload = bottomFloat.querySelector('.download'), + + liveButtonOptions = bottomWrapper.querySelector('.live-button.options'), sidebarToggle = document.querySelector('.sidebar-toggle'), liveToggle = document.querySelector('.live-toggle'), From 7ba6690759a1998b574a64dc4b09ad184a9edc41 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 1 Jan 2023 08:53:04 +0200 Subject: [PATCH 007/118] Update live-view.js --- live-view/live-view.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/live-view/live-view.js b/live-view/live-view.js index b108cad611..2331fe0464 100644 --- a/live-view/live-view.js +++ b/live-view/live-view.js @@ -396,14 +396,13 @@ function addBottomSwipeListener() { initialY = currentY; - const clickedOnShare = (e.target === - bottomWrapper.querySelector('.live-button.share')); + const clickedOnOptions = (e.target === liveButtonOptions); // if clicked and bottom float is expanded if (click && bottomWrapper.classList.contains('expanded')) { - // if did not click on share button - if (!clickedOnShare) { + // if did not click on options button + if (!clickedOnOptions) { e.preventDefault(); e.stopPropagation(); @@ -413,11 +412,15 @@ function addBottomSwipeListener() { toggleLiveView(selectedFile); - } else if (active) { + } else { - // if clicked on share button, + // if clicked on options button, toggle menu + liveViewMenu.classList.toggle('visible'); + liveButtonOptions.classList.toggle('active'); + + // share live view link - + /* // create a link const link = createLink({ dir: treeLoc, @@ -428,6 +431,7 @@ function addBottomSwipeListener() { title: 'Run ' + treeLoc[0] + '/' + treeLoc[1].split(':')[0] + ' with Codeit', url: link, }); + */ } From 0b7811e79731445efaa12ca11831c7a570b16113 Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 1 Jan 2023 08:56:18 +0200 Subject: [PATCH 008/118] Update full.css --- full.css | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/full.css b/full.css index 4647d4924b..3388c36417 100644 --- a/full.css +++ b/full.css @@ -298,14 +298,11 @@ body.notransition .bottom-wrapper { margin: -7px; } -.live-buttons .live-button:active { +.live-buttons .live-button:active, +.live-buttons .live-button.active { opacity: .5; } -.live-buttons .live-button path { - pointer-events: none; -} - .live-buttons .live-button.share path.ios { opacity: 0; } From d7be7c3eb6048fcfbc569b11ea16c4419b2d724b Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 1 Jan 2023 08:57:21 +0200 Subject: [PATCH 009/118] Update utils.js --- utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils.js b/utils.js index 68c5d45c8c..b0bfd7176a 100644 --- a/utils.js +++ b/utils.js @@ -56,6 +56,8 @@ const body = document.body, learnClose = learnWrapper.querySelector('.close'), branchMenu = document.querySelector('.branch-menu'), + + liveViewMenu = document.querySelector('.live-view-menu'), dialogWrapper = document.querySelector('.dialog-wrapper'), dialogTitle = dialogWrapper.querySelector('.title'), From e544f8f7839998967c73fda3330908924c22923b Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 1 Jan 2023 08:59:14 +0200 Subject: [PATCH 010/118] Update full.css --- full.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/full.css b/full.css index 3388c36417..043e1c8fe9 100644 --- a/full.css +++ b/full.css @@ -298,7 +298,7 @@ body.notransition .bottom-wrapper { margin: -7px; } -.live-buttons .live-button:active, +.live-buttons .live-button:not(.active):active, .live-buttons .live-button.active { opacity: .5; } From 12ec525d9d3258d89e565876b50d809c9f652d1d Mon Sep 17 00:00:00 2001 From: Bar Hatsor <34835685+barhatsor@users.noreply.github.com> Date: Sun, 1 Jan 2023 09:00:15 +0200 Subject: [PATCH 011/118] Update full.html --- full.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/full.html b/full.html index bb4cf3993e..634c08eb84 100644 --- a/full.html +++ b/full.html @@ -295,6 +295,13 @@ +