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

UTable: Expand Slot causes EmptyState width issue #2055

Open
rmbakker88 opened this issue Aug 16, 2024 · 2 comments · May be fixed by #2217
Open

UTable: Expand Slot causes EmptyState width issue #2055

rmbakker88 opened this issue Aug 16, 2024 · 2 comments · May be fixed by #2217
Labels
bug Something isn't working triage

Comments

@rmbakker88
Copy link

Environment

  • Operating System: Linux
  • Node Version: v18.20.3
  • Nuxt Version: 3.12.4
  • CLI Version: 3.12.0
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools, modules, compatibilityDate
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Version

v2.18.4

Reproduction

https://stackblitz.com/edit/github-kntdwe?file=app.vue

Description

Initialize any UTable, make sure it is empty. Add an expand slot. The Empty State slot will now not span the full width of the table.

Remove the expand slot, and the Empty State is the full width of the table again.

Additional context

image

Logs

No response

@rmbakker88 rmbakker88 added bug Something isn't working triage labels Aug 16, 2024
@DrxcoDev
Copy link

This issue might be related to CSS or layout handling when expand slots are present. Review the CSS styles or layout calculations applied to the UTable component when expand slots are included. Ensure that the styles for the Empty State are applied correctly and consider adding a CSS rule to ensure it spans the full width regardless of other slots.

@jscaltreto
Copy link

I'm seeing this, too. When the expand slot is used, an extra <th> is added to the header, but the corresponding colspan for the loading and empty states is not increased by 1 as it is when modelValue is present. The result is that the colspan is one fewer than it should be to completely fill the table.

@alexfriesen alexfriesen linked a pull request Sep 18, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants