Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<flux:cell> button vertical alignment #970

Open
3 tasks done
dicktornfeldt opened this issue Jan 10, 2025 · 1 comment
Open
3 tasks done

<flux:cell> button vertical alignment #970

dicktornfeldt opened this issue Jan 10, 2025 · 1 comment

Comments

@dicktornfeldt
Copy link

Flux version

v1.1.2

Livewire version

v3.5.12

What is the problem?

I had this in my own project, but also found it in the docs: https://fluxui.dev/components/table

There is some issue with the vertical alignment of a button inside a table cell. There is less space above button than below button, see attached image:

Image

Code snippets

<flux:cell>
<flux:button variant="ghost" size="sm" icon="ellipsis-horizontal" inset="top bottom"></flux:button>
</flux:cell>

How do you expect it to work?

There should be same spacing above and below button.

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.
@jeffchown
Copy link

@dicktornfeldt I always add flex items-center to my table cells that contain buttons, badges, etc. as they can be different vertical sizes than the height of the cell.

Have you tried?:

<flux:cell class="flex items-center">
    <flux:button variant="ghost" size="sm" icon="ellipsis-horizontal" inset="top bottom"></flux:button>
</flux:cell>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants