Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(web): prevent IP policy input focus ring clipping (#44631)

Coding On Star5eb9b3042baf
diff --git a/oxlint-suppressions.json b/oxlint-suppressions.json
index d18c09edb9b..690f89c8ad9 100644
--- a/oxlint-suppressions.json
+++ b/oxlint-suppressions.json
@@ -7372,11 +7372,6 @@
"count": 1
}
},
- "web/features/network-access/policy-editor/allowlist-field.tsx": {
- "better-tailwindcss/enforce-logical-properties": {
- "count": 1
- }
- },
"web/features/network-access/policy-references.tsx": {
"better-tailwindcss/enforce-logical-properties": {
"count": 2
diff --git a/web/features/network-access/policy-editor/allowlist-field.tsx b/web/features/network-access/policy-editor/allowlist-field.tsx
index 919ce749707..b5e7cc23b4b 100644
--- a/web/features/network-access/policy-editor/allowlist-field.tsx
+++ b/web/features/network-access/policy-editor/allowlist-field.tsx
@@ -98,7 +98,7 @@ export function AllowlistField({
</FieldDescription>
</div>
- <div className="flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto">
+ <div className="-m-0.5 flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto p-0.5">
{entries.map((entry) => {
const result = validateIpEntry(entry.value)
const invalid = result.kind === 'invalid'
@@ -115,7 +115,7 @@ export function AllowlistField({
value={entry.value}
placeholder="10.0.0.0/8"
aria-label={t(($) => $['settings.ipPolicyAllowlist'], { ns: 'common' })}
- className={invalid ? 'pr-8' : undefined}
+ className={invalid ? 'pe-8' : undefined}
onChange={(event) => updateEntry(entry.id, event.currentTarget.value)}
/>
{invalid && (