Skip to content

Commit a283859

Browse files
committed
fix for webhook token
1 parent 02ab794 commit a283859

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

src/components/ciPipeline/Webhook/WebhookDetailsModal.tsx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -361,18 +361,16 @@ export function WebhookDetailsModal({ close }: WebhookDetailType) {
361361

362362
const renderWebhookURLTokenContainer = (): JSX.Element => {
363363
return (
364-
<div className="mb-16">
365-
<div className="flexbox w-100 dc__position-rel en-2 bw-1 br-4 h-32">
366-
{renderWebhhokTokenLabel()}
367-
<CustomInput
368-
name="api-token"
369-
placeholder="Enter API token"
370-
rootClassName="bcn-0 dc__no-border-imp w-100 h-32 p-0-imp"
371-
onChange={handleTokenChange}
372-
value={tryoutAPIToken}
373-
error={showTryoutAPITokenError && WEBHOOK_NO_API_TOKEN_ERROR}
374-
/>
375-
</div>
364+
<div className="flexbox w-100 dc__position-rel en-2 bw-1 br-4 h-32 mb-16">
365+
{renderWebhhokTokenLabel()}
366+
<CustomInput
367+
name="api-token"
368+
placeholder="Enter API token"
369+
rootClassName="bcn-0 dc__no-border-imp w-100 h-32 pt-5-imp p-0-8-imp"
370+
onChange={handleTokenChange}
371+
value={tryoutAPIToken}
372+
error={showTryoutAPITokenError && WEBHOOK_NO_API_TOKEN_ERROR}
373+
/>
376374
</div>
377375
)
378376
}

src/css/base.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3421,6 +3421,10 @@ textarea,
34213421
padding: 6px 12px !important;
34223422
}
34233423

3424+
.p-0-8-imp {
3425+
padding: 0px 8px !important;
3426+
}
3427+
34243428
// Margin in pixels
34253429
.dc__m-auto {
34263430
margin: auto;

0 commit comments

Comments
 (0)