Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Horizontal scrollable table ignores column width (#3726)#3937

Merged
wesdevpro merged 1 commit intobuefy:devfromkikuomax:fix-table-width
Dec 15, 2023

Conversation

kikuomax
Copy link
Collaborator

Fixes

Proposed Changes

  • Applywidth style to<div> in<th>.
  • Introduce a new computed propertythWrapStyle toBTableColumn

- Fixes the issue that `BTable` ignored column widths if there were more  columns than fitting in a page.  Applies the `width` to the child `<div >` of `<th>` to enforce the `width`. `BTableColumn`  introduces a new computed property `thWrapStyle` that is applied to  `th-wrap` elements.  Unfortunately, `<table>` may ignore `width` unless `table-layout` is  fixed. `table-layout: fixed`, however, requires an explicit table  width to work and is not always relevant. The workaround is inspired  by the following StackOverflow comment:    -https://stackoverflow.com/questions/18503849/set-min-width-in-html-tables-td#comment27205973_18503849  Fortunately, `BTable` had `<div>` inside all the  `<th>` elements. So I decided to apply `width` to those elements.issuebuefy#3726
@netlifyNetlify
Copy link

netlifybot commentedDec 15, 2023
edited
Loading

Deploy Preview forbuefy-org ready!

NameLink
🔨 Latest commit740e15e
🔍 Latest deploy loghttps://app.netlify.com/sites/buefy-org/deploys/657c118a3e3c5800088fc3f5
😎 Deploy Previewhttps://deploy-preview-3937--buefy-org.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to yourNetlify site configuration.

@wesdevprowesdevpro merged commitfba068b intobuefy:devDec 15, 2023
@kikuomaxkikuomax deleted the fix-table-width branchDecember 16, 2023 14:40
kikuomax added a commit to kikuomax/buefy that referenced this pull requestJan 10, 2024
- Fixes the issue that `BTable` ignored column widths if there were more  columns than fitting in a page.  Applies the `width` to the child `<div >` of `<th>` to enforce the `width`. `BTableColumn`  introduces a new computed property `thWrapStyle` that is applied to  `th-wrap` elements.  Unfortunately, `<table>` may ignore `width` unless `table-layout` is  fixed. `table-layout: fixed`, however, requires an explicit table  width to work and is not always relevant. The workaround is inspired  by the following StackOverflow comment:    -https://stackoverflow.com/questions/18503849/set-min-width-in-html-tables-td#comment27205973_18503849  Fortunately, `BTable` had `<div>` inside all the  `<th>` elements. So I decided to apply `width` to those elements.issuebuefy#3726- Includes an additional fix for buefy-next:    - `mockTableColumn` also provides `thWrapStyle`
kikuomax added a commit to kikuomax/buefy that referenced this pull requestFeb 11, 2024
- Fixes the issue that `BTable` ignored column widths if there were more  columns than fitting in a page.  Applies the `width` to the child `<div >` of `<th>` to enforce the `width`. `BTableColumn`  introduces a new computed property `thWrapStyle` that is applied to  `th-wrap` elements.  Unfortunately, `<table>` may ignore `width` unless `table-layout` is  fixed. `table-layout: fixed`, however, requires an explicit table  width to work and is not always relevant. The workaround is inspired  by the following StackOverflow comment:    -https://stackoverflow.com/questions/18503849/set-min-width-in-html-tables-td#comment27205973_18503849  Fortunately, `BTable` had `<div>` inside all the  `<th>` elements. So I decided to apply `width` to those elements.issuebuefy#3726- Includes an additional fix for buefy-next:    - `mockTableColumn` also provides `thWrapStyle`
kikuomax added a commit to ntohq/buefy-next that referenced this pull requestFeb 12, 2024
- Fixes the issue that `BTable` ignored column widths if there were more  columns than fitting in a page.  Applies the `width` to the child `<div >` of `<th>` to enforce the `width`. `BTableColumn`  introduces a new computed property `thWrapStyle` that is applied to  `th-wrap` elements.  Unfortunately, `<table>` may ignore `width` unless `table-layout` is  fixed. `table-layout: fixed`, however, requires an explicit table  width to work and is not always relevant. The workaround is inspired  by the following StackOverflow comment:    -https://stackoverflow.com/questions/18503849/set-min-width-in-html-tables-td#comment27205973_18503849  Fortunately, `BTable` had `<div>` inside all the  `<th>` elements. So I decided to apply `width` to those elements.issuebuefy#3726- Includes an additional fix for buefy-next:    - `mockTableColumn` also provides `thWrapStyle`
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@wesdevprowesdevproAwaiting requested review from wesdevpro

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Horizontal scrollable table ignores column width
2 participants
@kikuomax@wesdevpro

[8]ページ先頭

©2009-2025 Movatter.jp