From f2e68927299175a69256f300ce29fdaaaf758718 Mon Sep 17 00:00:00 2001 From: sua yoo Date: Wed, 9 Apr 2025 12:41:53 -0700 Subject: [PATCH] fix: Update custom behavior file placeholder text (#2552) Follows https://github.com/webrecorder/browsertrix/issues/2151 ## Changes Updates placeholder text for custom behavior files, since we now accept JSON. --- .../features/crawl-workflows/custom-behaviors-table-row.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/features/crawl-workflows/custom-behaviors-table-row.ts b/frontend/src/features/crawl-workflows/custom-behaviors-table-row.ts index d18cdc97..b21125a3 100644 --- a/frontend/src/features/crawl-workflows/custom-behaviors-table-row.ts +++ b/frontend/src/features/crawl-workflows/custom-behaviors-table-row.ts @@ -77,7 +77,7 @@ const errorFor: Record = { }; const inputStyle = [ - tw`[--sl-input-border-radius-medium:0] [--sl-input-spacing-medium:var(--sl-spacing-small)] [--sl-input-background-color-hover:transparent] [--sl-input-background-color:transparent] [--sl-input-border-color-hover:transparent]`, + tw`[--sl-input-background-color-hover:transparent] [--sl-input-background-color:transparent] [--sl-input-border-color-hover:transparent] [--sl-input-border-radius-medium:0] [--sl-input-spacing-medium:var(--sl-spacing-small)]`, tw`data-[valid]:[--sl-input-border-color:transparent]`, tw`part-[form-control-help-text]:mx-1 part-[form-control-help-text]:mb-1`, ]; @@ -356,7 +356,7 @@ export class CustomBehaviorsTableRow extends BtrixElement { } return this.renderUrlInput(behavior, { - placeholder: msg("Enter URL to JavaScript file"), + placeholder: msg("Enter location of behavior file"), }); }