From 6ca724ecc1a1406a027fb78191b7ef37e06b1de2 Mon Sep 17 00:00:00 2001 From: Jumana Almahmoud Date: Fri, 10 Nov 2023 02:04:31 -0500 Subject: [PATCH] change Exp label --- public/style/plugin.css | 2 +- src/app.js | 4 +- src/components/editor/EditorView.vue | 4 +- src/components/filters/FilterView.vue | 67 ++++++++++++----------- src/components/highlights/NbHighlight.vue | 2 +- src/components/thread/ThreadComment.vue | 8 +-- 6 files changed, 46 insertions(+), 41 deletions(-) diff --git a/public/style/plugin.css b/public/style/plugin.css index 39f4bb0..308fbfd 100644 --- a/public/style/plugin.css +++ b/public/style/plugin.css @@ -916,7 +916,7 @@ } #nb-app .nb-sidebar .thread-view .thread-row .footer > span .icon { height: 14px; - vertical-align: top; + vertical-align: bottom; } #nb-app-wrapper .thread-overflow-wrapper .tooltip-arrow { diff --git a/src/app.js b/src/app.js index 537cea2..7b28153 100644 --- a/src/app.js +++ b/src/app.js @@ -487,7 +487,9 @@ function embedNbApp() { let filterUpvotes = this.filter.upvotes if (filterUpvotes.length > 0) { items = items.filter(item => { - if ( (filterUpvotes.includes('anyone') && item.hasUpvotes()) || (this.currentConfigs.isExpClass && item.hasUserPost(this.user.id))) { + if ( (filterUpvotes.includes('anyone') && item.hasUpvotes()) + || (this.currentConfigs.isExpClass && item.hasUserPost(this.user.id)) + || (this.currentConfigs.isExpClass && item.hasReplyRequests())) { return true } if (filterUpvotes.includes('me') && item.hasMyUpvotes()) { diff --git a/src/components/editor/EditorView.vue b/src/components/editor/EditorView.vue index dae3eaa..faa5039 100644 --- a/src/components/editor/EditorView.vue +++ b/src/components/editor/EditorView.vue @@ -46,7 +46,9 @@
- + +
+
Max. # of threads
-
+
+ +
+
{{currentConfigs.isExpClass ? `Looking for Classmates' Perspectives` : 'Upvotes'}}
+
+
+ type="checkbox" + id="anyone-upvotes" + value="anyone" + v-model="filterUpvotes" + @change="onFilterChange('upvotes')"> + +
+
+ +
+
Users tagged
@@ -163,31 +188,7 @@
-
{{currentConfigs.isExpClass ? 'Discussion comments' : 'Upvotes'}}
-
-
- - -
-
- - -
-
+
Others
diff --git a/src/components/highlights/NbHighlight.vue b/src/components/highlights/NbHighlight.vue index 90d214c..2d7ecfa 100644 --- a/src/components/highlights/NbHighlight.vue +++ b/src/components/highlights/NbHighlight.vue @@ -190,7 +190,7 @@ export default { }, style: function () { if (this.isHidden) { - return "fill: none; stroke: rgb(255 204 1 / 75%); stroke-dasharray: 3;" + return "fill: none; stroke: rgb(255 204 1 / 95%); stroke-dasharray: 3;" } if (!this.thread) { return 'fill: rgb(231, 76, 60); fill-opacity: 0.3; cursor: pointer;' diff --git a/src/components/thread/ThreadComment.vue b/src/components/thread/ThreadComment.vue index 39d9ab2..9db0d7d 100644 --- a/src/components/thread/ThreadComment.vue +++ b/src/components/thread/ThreadComment.vue @@ -104,11 +104,11 @@  ·  - - - {{ comment.upvoteCount }} + 👁️‍🗨️ + + {{ comment.upvoteCount }}  ·