mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-27 07:34:12 +08:00
fix: rule provider word break
This commit is contained in:
parent
949215bb8e
commit
e6facf1175
@ -37,10 +37,7 @@ export default () => {
|
||||
|
||||
const onSpeedTestClick = async (e: MouseEvent, name: string) => {
|
||||
e.stopPropagation()
|
||||
setSpeedTestingMap(
|
||||
name,
|
||||
async () => await latencyTestByProxyGroupName(name),
|
||||
)
|
||||
setSpeedTestingMap(name, () => latencyTestByProxyGroupName(name))
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -34,17 +34,14 @@ export default () => {
|
||||
useStringBooleanMap()
|
||||
const [allProviderIsUpdating, setAllProviderIsUpdating] = createSignal(false)
|
||||
|
||||
const onHealthCheckClick = async (e: MouseEvent, name: string) => {
|
||||
const onHealthCheckClick = (e: MouseEvent, name: string) => {
|
||||
e.stopPropagation()
|
||||
setHealthCheckingMap(
|
||||
name,
|
||||
async () => await healthCheckByProviderName(name),
|
||||
)
|
||||
setHealthCheckingMap(name, () => healthCheckByProviderName(name))
|
||||
}
|
||||
|
||||
const onUpdateProviderClick = async (e: MouseEvent, name: string) => {
|
||||
const onUpdateProviderClick = (e: MouseEvent, name: string) => {
|
||||
e.stopPropagation()
|
||||
setUpdateingMap(name, async () => await updateProviderByProviderName(name))
|
||||
setUpdateingMap(name, () => updateProviderByProviderName(name))
|
||||
}
|
||||
|
||||
const onUpdateAllProviderClick = async (e: MouseEvent) => {
|
||||
|
@ -40,7 +40,7 @@ export default () => {
|
||||
}
|
||||
|
||||
return (
|
||||
<div class="flex w-full flex-row gap-4">
|
||||
<div class="flex w-full gap-4">
|
||||
<div class="flex-1">
|
||||
<h1 class="pb-4 text-lg font-semibold">{t('rules')}</h1>
|
||||
|
||||
@ -82,11 +82,11 @@ export default () => {
|
||||
<For each={rulesProviders()}>
|
||||
{(rulesProvider) => (
|
||||
<div class="card card-bordered card-compact mb-2 bg-base-200 p-4">
|
||||
<div class="flex h-6 items-center justify-between">
|
||||
<span>
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="break-all">
|
||||
{rulesProvider.name} ({rulesProvider.ruleCount})
|
||||
</span>
|
||||
<div>
|
||||
</div>
|
||||
<div class="h-6">
|
||||
<Button
|
||||
class="btn-circle btn-sm mr-2"
|
||||
onClick={(e) =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user