Skip to content

Commit 1be681e

Browse files
authored
Merge pull request #440 from iceljc/main
fix rule modal styles
2 parents 7c11a1e + 0b0659c commit 1be681e

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/lib/common/modals/PlainModal.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@
3232
<!-- svelte-ignore a11y_no_static_element_interactions -->
3333
<!-- svelte-ignore a11y_click_events_have_key_events -->
3434
<div
35-
class="fixed inset-0 z-[9999] flex items-start justify-center pt-[10vh] bg-black/50"
35+
class={`fixed inset-0 z-[9999] flex items-start justify-center pt-[10vh] bg-black/50 ${containerClasses}`}
3636
transition:fade={{ duration: 150 }}
3737
onclick={handleBackdropClick}
3838
>
3939
<div
40-
class={`bg-white dark:bg-gray-800 rounded-lg shadow-xl w-full ${sizeClasses[size] || 'max-w-lg'} mx-4 ${containerClasses}`}
40+
class={`bg-white dark:bg-gray-800 rounded-lg shadow-xl w-full ${sizeClasses[size] || 'max-w-lg'} mx-4 modal-content`}
4141
style={containerStyles}
4242
>
4343
<!-- Header -->
4444
{#if title}
45-
<div class="flex items-center justify-between p-3 border-b border-gray-200 dark:border-gray-700">
45+
<div class="flex items-center justify-between p-3 border-b border-gray-200 dark:border-gray-700 modal-title">
4646
<div class="font-semibold text-lg">{title}</div>
4747
<button
4848
type="button"
@@ -56,7 +56,7 @@
5656
{/if}
5757

5858
<!-- Body -->
59-
<div class="p-3" style={bodyStyles}>
59+
<div class="p-3 modal-body" style={bodyStyles}>
6060
{@render children?.()}
6161
</div>
6262
</div>

src/routes/page/agent/[agentId]/agent-components/rules/agent-rule-item.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
<input
107107
type="checkbox"
108108
class="form-check-input"
109+
style="margin-top: 0;"
109110
checked={!rule.disabled}
110111
onchange={e => toggleRule(e, 'rule')}
111112
/>

0 commit comments

Comments
 (0)