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

responsive any height #267

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

responsive any height #267

wants to merge 1 commit into from

Conversation

myso-kr
Copy link

@myso-kr myso-kr commented Mar 26, 2023

The datatable resizes reliably at any height.

Test code
<style>
.h-screen { height: 100vh; }
</style>

<template>
  <EasyDatatable class="h-screen" items="items" :headers="headers"></EasyDatatable>
</template>

What types of changes does your code introduce?

.vue3-easy-data-table {
  overflow: hidden; display: flex; flex-direction: column;
  .vue3-easy-data-table__main { flex-grow: 1; flex: 1 1 0%; }
}

Put an x in the boxes that apply_

  • Fix
  • Feature

Checklist

Put an x in the boxes that apply._

  • Title as described
  • Add unit test by vitest if necessary

Fixed
- The datatable resizes reliably at any height.

```
<style>
.h-screen { height: 100vh; }
</style>

<template>
  <EasyDatatable class="h-screen" items="items" :headers="headers"></EasyDatatable>
</template>
```
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

Successfully merging this pull request may close these issues.

None yet

1 participant