From a0fbd7aa9bdfe52a040de8b5cd48e4f05e9077ab Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Fri, 12 Jul 2024 15:03:40 +0200 Subject: [PATCH] new: [front:scores] Added support of ultra-compact view in fullscreen mode --- src/components/LiveLogsUserActivityGraph.vue | 6 +++--- .../scoreViews/TheFullScreenScoreGrid.vue | 19 ++++++++++++------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/components/LiveLogsUserActivityGraph.vue b/src/components/LiveLogsUserActivityGraph.vue index 746d3cd..30e0f2e 100644 --- a/src/components/LiveLogsUserActivityGraph.vue +++ b/src/components/LiveLogsUserActivityGraph.vue @@ -3,7 +3,7 @@ import { userActivity, userActivityConfig } from "@/socket"; import { darkModeEnabled } from "@/settings.js" - const props = defineProps(['user_id', 'compact_view']) + const props = defineProps(['user_id', 'compact_view', 'ultra_compact_view']) const theChart = ref(null) const bufferSize = computed(() => userActivityConfig.value.activity_buffer_size) @@ -54,14 +54,14 @@ \ No newline at end of file diff --git a/src/components/scoreViews/TheFullScreenScoreGrid.vue b/src/components/scoreViews/TheFullScreenScoreGrid.vue index b8668f9..8447458 100644 --- a/src/components/scoreViews/TheFullScreenScoreGrid.vue +++ b/src/components/scoreViews/TheFullScreenScoreGrid.vue @@ -95,6 +95,7 @@ } } + const compactGrid = computed(() => { return userCount.value > 70 }) const hasProgress = computed(() => Object.keys(progresses.value).length > 0) const sortedProgress = computed(() => Object.values(progresses.value).sort((a, b) => { if (a.email < b.email) { @@ -140,6 +141,7 @@ dark:bg-blue-800 bg-blue-500 dark:text-slate-300 text-slate-100 " > +
{{ exercise.name }} @@ -153,6 +155,7 @@
+
-
+ +
- + - {{ progress.email.split('@')[0] }} - @{{ progress.email.split('@')[1] }} + {{ progress.email.split('@')[0] }} + @{{ progress.email.split('@')[1] }} @@ -218,20 +223,20 @@