fixed localization and made minor bug fixes
This commit is contained in:
@@ -248,9 +248,9 @@ export const ProxySelectors: React.FC = () => {
|
||||
</span>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>
|
||||
{sortType === 'default' && <p>{t("Default")}</p>}
|
||||
{sortType === 'delay' && <p>{t("sort by ping")}</p>}
|
||||
{sortType === 'name' && <p>{t("sort by name")}</p>}
|
||||
{sortType === 'default' && <p>{t("Sort by default")}</p>}
|
||||
{sortType === 'delay' && <p>{t("Sort by delay")}</p>}
|
||||
{sortType === 'name' && <p>{t("Sort by name")}</p>}
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ const LetterItem = memo(
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<div
|
||||
className="flex items-center justify-center w-6 h-6 text-xs rounded-md cursor-pointer text-muted-foreground transition-transform hover:bg-accent hover:text-accent-foreground hover:scale-125"
|
||||
className="flex items-center justify-center w-6 h-6 text-xs rounded-md border shadow-sm cursor-pointer text-muted-foreground transition-transform hover:bg-accent hover:text-accent-foreground hover:scale-125"
|
||||
onClick={() => onClick(name)}
|
||||
>
|
||||
{getFirstChar(name)}
|
||||
@@ -240,7 +240,6 @@ export const ProxyGroups = memo((props: Props) => {
|
||||
error,
|
||||
);
|
||||
}
|
||||
onProxies();
|
||||
});
|
||||
|
||||
const handleLocation = (group: IProxyGroupItem) => {
|
||||
|
||||
@@ -130,7 +130,6 @@ export const ProxyHead = (props: Props) => {
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
|
||||
{/* --- НАЧАЛО ИЗМЕНЕНИЙ --- */}
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
@@ -139,7 +138,6 @@ export const ProxyHead = (props: Props) => {
|
||||
onClick={() => onHeadState({ showType: !showType })}
|
||||
className="h-8 w-8"
|
||||
>
|
||||
{/* Теперь цвет иконки меняется в зависимости от состояния showType */}
|
||||
<Eye className={cn("h-5 w-5", showType && "text-primary")} />
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
@@ -147,7 +145,6 @@ export const ProxyHead = (props: Props) => {
|
||||
<p>{showType ? t("Show Basic Info") : t("Show Detailed Info")}</p>
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
{/* --- КОНЕЦ ИЗМЕНЕНИЙ --- */}
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-1">
|
||||
|
||||
@@ -60,8 +60,6 @@ export const ProxyItemMini = (props: Props) => {
|
||||
};
|
||||
|
||||
return (
|
||||
// --- НАЧАЛО ИЗМЕНЕНИЙ ---
|
||||
// Увеличиваем высоту (h-16) и внутренние отступы (p-3)
|
||||
<div
|
||||
data-selected={selected}
|
||||
onClick={handleItemClick}
|
||||
@@ -78,19 +76,13 @@ export const ProxyItemMini = (props: Props) => {
|
||||
{proxy.now}
|
||||
</span>
|
||||
)}
|
||||
{!!proxy.provider && (
|
||||
<Badge variant="outline" className="flex-shrink-0">
|
||||
{proxy.provider}
|
||||
</Badge>
|
||||
)}
|
||||
<Badge variant="outline" className="flex-shrink-0">
|
||||
{proxy.type}
|
||||
</Badge>
|
||||
{proxy.udp && (
|
||||
<Badge variant="outline" className="flex-shrink-0">
|
||||
UDP
|
||||
</Badge>
|
||||
)}
|
||||
{!!proxy.provider && (<Badge variant="outline" className="flex-shrink-0">{proxy.provider}</Badge>)}
|
||||
<Badge variant="outline" className="flex-shrink-0">{proxy.type}</Badge>
|
||||
{proxy.udp && (<Badge variant="outline" className="flex-shrink-0">UDP</Badge>)}
|
||||
{proxy.xudp && <Badge variant="outline" className="flex-shrink-0">XUDP</Badge>}
|
||||
{proxy.tfo && <Badge variant="outline" className="flex-shrink-0">TFO</Badge>}
|
||||
{proxy.mptcp && <Badge variant="outline" className="flex-shrink-0">MPTCP</Badge>}
|
||||
{proxy.smux && <Badge variant="outline" className="flex-shrink-0">SMUX</Badge>}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -110,7 +110,7 @@ export const ProxyItem = (props: Props) => {
|
||||
onClick={handleDelayClick}
|
||||
className={`font-medium ${getDelayColorClass(delay)} ${!proxy.provider ? "hover:opacity-70" : "cursor-default"}`}
|
||||
>
|
||||
{delayManager.formatDelay(delay, timeout)} ms
|
||||
{delayManager.formatDelay(delay, timeout)}
|
||||
</div>
|
||||
) : (
|
||||
// Состояние по умолчанию (до проверки)
|
||||
|
||||
Reference in New Issue
Block a user