This commit is contained in:
payacom
2026-07-11 20:59:27 +03:30
parent 0864ae4723
commit 402f199e58
4 changed files with 5 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ import PageTitle from "@/components/settings/PageTitle";
import Roules from "@/components/settings/settings/Roules";
import UserDetails from "@/components/settings/UserDetails";
import { navLinks } from "@/constants";
import { staticIconUrl } from "@/components/main/BaseUrl";
import Image from "next/image";
import Link from "next/link";
import React from "react";
@@ -28,7 +29,7 @@ function Settings() {
width={24}
height={24}
alt={item?.title}
src={`/images/icons/${item?.icon}`}
src={staticIconUrl(`/images/icons/${item?.icon}`)}
className="dark:invert"
/>
<span>{item?.title}</span>

View File

@@ -40,7 +40,7 @@ export const IMAGE_BASE_URL = getStorageBaseUrl();
/** نسخه آیکون‌ها — با هر تغییر آیکون این مقدار را افزایش دهید */
export const ICON_VERSION =
process.env.NEXT_PUBLIC_ICON_VERSION ?? "5";
process.env.NEXT_PUBLIC_ICON_VERSION ?? "6";
/** URL آیکون استاتیک با cache-busting */
export function staticIconUrl(path: string): string {

View File

@@ -101,7 +101,7 @@ function ModelContentPosts({ filters, token, _id }: InfinitePostsProps) {
<button
type="button"
key={post._id}
className="relative aspect-square cursor-pointer overflow-hidden rounded-sm sm:rounded-lg group focus:outline-none focus-visible:ring-2 focus-visible:ring-pink-500"
className="relative aspect-square cursor-pointer overflow-hidden rounded-md sm:rounded-xl group focus:outline-none focus-visible:ring-2 focus-visible:ring-pink-500"
onClick={() => openPost(post)}
aria-label="مشاهده پست"
>