Skip to content

Custom profile fields section needs bottom spacing in admin user edit #769

@lane711

Description

@lane711

Bug Description

In the admin user edit page, the "Custom Profile Fields" section rendered by renderCustomProfileSection() lacks bottom padding/spacing. The last custom field sits flush against whatever comes below it.

Location

renderCustomProfileSection() in user-profiles/user-profile-templates.ts returns:

<div class="pt-6 border-t border-zinc-950/5 dark:border-white/5">
  <h3 class="text-base font-semibold text-zinc-950 dark:text-white mb-4">Custom Profile Fields</h3>
  <div class="space-y-4">
    ${fieldsHtml}
  </div>
</div>

Suggested Fix

Add bottom padding and a bottom border to match the top:

<div class="py-6 border-t border-b border-zinc-950/5 dark:border-white/5">

Or simply add pb-6 to the container div.

Environment

  • @sonicjs-cms/core: 2.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions