From 4e514ab15178e531b1d5b089f6bddbad7d327cfe Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Sun, 16 Aug 2026 23:15:09 +0200 Subject: [PATCH] fix: show Workshop voting as net score --- .../components/workshop/workshop-browser.tsx | 55 +++++++++++-------- packages/translation/src/lang/en.json | 1 + 2 files changed, 33 insertions(+), 23 deletions(-) diff --git a/apps/nextjs/src/components/workshop/workshop-browser.tsx b/apps/nextjs/src/components/workshop/workshop-browser.tsx index e364f3cf8..f31c99ec8 100644 --- a/apps/nextjs/src/components/workshop/workshop-browser.tsx +++ b/apps/nextjs/src/components/workshop/workshop-browser.tsx @@ -3,6 +3,7 @@ import { useEffect, useId, useMemo, useState } from "react"; import { Accordion, + ActionIcon, Alert, Badge, Box, @@ -39,8 +40,6 @@ import { IconMessageCircle, IconRefresh, IconSearch, - IconThumbDown, - IconThumbUp, } from "@tabler/icons-react"; import { CUSTOM_WIDGET_SCHEMA } from "@homarr/custom-widgets/core"; import type { HomarrCustomWidgetV2 } from "@homarr/custom-widgets/core"; @@ -526,28 +525,38 @@ export function WorkshopBrowser({ type = "customWidget", onInstall, onUseCss, mo > {t("export")} - - + vote.mutate({ submission: detail.data.id, value: 1 })} + > + + + + {detail.data.score} + + vote.mutate({ submission: detail.data.id, value: -1 })} + > + + +