Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita0497d3

Browse files
mtojekaslilac
authored andcommitted
fix: center proxy spinner (#16621)
Fixes:#16615
1 parent65b14ac commita0497d3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

‎site/src/components/Latency/Latency.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ import { getLatencyColor } from "utils/latency";
1010
interfaceLatencyProps{
1111
latency?:number;
1212
isLoading?:boolean;
13+
size?:number;
1314
}
1415

15-
exportconstLatency:FC<LatencyProps>=({ latency, isLoading})=>{
16+
exportconstLatency:FC<LatencyProps>=({
17+
latency,
18+
isLoading,
19+
size=14,
20+
})=>{
1621
consttheme=useTheme();
1722
// Always use the no latency color for loading.
1823
constcolor=getLatencyColor(theme,isLoading ?undefined :latency);
@@ -21,7 +26,7 @@ export const Latency: FC<LatencyProps> = ({ latency, isLoading }) => {
2126
return(
2227
<Tooltiptitle="Loading latency...">
2328
<CircularProgress
24-
size={14}
29+
size={size}
2530
css={{marginLeft:"auto"}}
2631
style={{ color}}
2732
/>

‎site/src/modules/dashboard/Navbar/ProxyMenu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export const ProxyMenu: FC<ProxyMenuProps> = ({ proxyContextValue }) => {
9999
<Latency
100100
latency={latencies?.[selectedProxy.id]?.latencyMS}
101101
isLoading={proxyLatencyLoading(selectedProxy)}
102+
size={24}
102103
/>
103104
</div>
104105
) :(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp