mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix(global): back button cursor
This commit is contained in:
parent
005b80360c
commit
16da9c3f0f
@ -49,7 +49,7 @@ export async function Global({ countries = [] }: GlobalProps) {
|
|||||||
turf.bbox({ type: "Polygon", coordinates: polygon }),
|
turf.bbox({ type: "Polygon", coordinates: polygon }),
|
||||||
);
|
);
|
||||||
|
|
||||||
const spacing = 20; // 单位为千米
|
const spacing = 10; // 单位为千米
|
||||||
const options = { units: "kilometers" };
|
const options = { units: "kilometers" };
|
||||||
|
|
||||||
bboxList.forEach((bbox: any) => {
|
bboxList.forEach((bbox: any) => {
|
||||||
@ -82,7 +82,7 @@ export async function Global({ countries = [] }: GlobalProps) {
|
|||||||
// 获取国家的边界框
|
// 获取国家的边界框
|
||||||
const bbox = turf.bbox(feature);
|
const bbox = turf.bbox(feature);
|
||||||
|
|
||||||
const spacing = 50; // 单位为千米,值越小点越密集
|
const spacing = 10; // 单位为千米,值越小点越密集
|
||||||
const options = { units: "kilometers" };
|
const options = { units: "kilometers" };
|
||||||
// @ts-expect-error ignore
|
// @ts-expect-error ignore
|
||||||
const pointGrid = turf.pointGrid(bbox, spacing, options);
|
const pointGrid = turf.pointGrid(bbox, spacing, options);
|
||||||
|
@ -121,7 +121,7 @@ export default function ServerListClient() {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
router.push(`/?global=true`);
|
router.push(`/?global=true`);
|
||||||
}}
|
}}
|
||||||
className="rounded-[50px] bg-stone-100 p-[10px] transition-all hover:bg-stone-200 dark:hover:bg-stone-700 dark:bg-stone-800"
|
className="rounded-[50px] cursor-pointer bg-stone-100 p-[10px] transition-all hover:bg-stone-200 dark:hover:bg-stone-700 dark:bg-stone-800"
|
||||||
>
|
>
|
||||||
<GlobeAsiaAustraliaIcon className="size-4" />
|
<GlobeAsiaAustraliaIcon className="size-4" />
|
||||||
</button>
|
</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user