diff --git a/frontend/src/components/select.tsx b/frontend/src/components/select.tsx index 9bd8c74..9460c89 100644 --- a/frontend/src/components/select.tsx +++ b/frontend/src/components/select.tsx @@ -26,7 +26,7 @@ export default function Select({ tabIndex={0} role={"button"} className={ - "flex border border-primary rounded-3xl px-4 py-2 items-center cursor-pointer min-w-52 focus:outline-2 focus:outline-primary outline-offset-2" + "flex border border-primary/80 bg-base-100-tr82 rounded-3xl px-4 py-2 items-center cursor-pointer min-w-52 focus:outline-2 focus:outline-primary outline-offset-2" } > diff --git a/frontend/src/index.css b/frontend/src/index.css index bb46b13..7325673 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -316,3 +316,13 @@ body { .bg-base-100-tr82 { background-color: rgb(var(--color-base-100-rgb) / 0.82); } + +.bg-base-200-tr82 { + background-color: rgb(var(--color-base-200-rgb) / 0.82); +} + +@media (width >= 1024px) { + .lg\:bg-base-100-tr82 { + background-color: rgb(var(--color-base-100-rgb) / 0.82); + } +} \ No newline at end of file diff --git a/frontend/src/pages/comment_page.tsx b/frontend/src/pages/comment_page.tsx index 8284281..cb6b86d 100644 --- a/frontend/src/pages/comment_page.tsx +++ b/frontend/src/pages/comment_page.tsx @@ -14,6 +14,7 @@ import Pagination from "../components/pagination"; import { MdOutlineDelete, MdOutlineEdit } from "react-icons/md"; import { TextArea } from "../components/input"; import { app } from "../app"; +import { useNavigator } from "../components/navigator"; export default function CommentPage() { const params = useParams(); @@ -84,7 +85,18 @@ export default function CommentPage() { useEffect(() => { document.title = t("Comment Details"); - }); + }, [t]); + + const navigator = useNavigator(); + + useEffect(() => { + if (comment?.resource && comment.resource.image) { + navigator.setBackground(network.getResampledImageUrl(comment.resource.image.id)); + } else if (comment?.images?.length) { + // comment images are not resampled + navigator.setBackground(network.getImageUrl(comment.images[0].id)); + } + }, [comment]); if (!comment) { return ; @@ -95,7 +107,8 @@ export default function CommentPage() { {comment.resource && } {comment.reply_to && }
-
+
+
)} +