Skip to content

Commit

Permalink
Restore important based on PrimeReact impl
Browse files Browse the repository at this point in the history
  • Loading branch information
FlipWarthog committed Nov 10, 2023
1 parent fbcd0a5 commit fc806e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/lib/datatable/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ export default {
widths.forEach((width, index) => {
let colWidth = index === colIndex ? newColumnWidth : nextColumnWidth && index === colIndex + 1 ? nextColumnWidth : width;
let style = `width: ${colWidth}px; max-width: ${colWidth}px`;
let style = `width: ${colWidth}px !important; max-width: ${colWidth}px !important`;
innerHTML += `
${selector} > thead[data-pc-section="thead"] > tr > th:nth-child(${index + 1}),
Expand Down Expand Up @@ -1763,7 +1763,7 @@ export default {
let selector = `[data-pc-name="datatable"][${this.attributeSelector}] > [data-pc-section="wrapper"] ${this.virtualScrollerDisabled ? '' : '> [data-pc-section="virtualscroller"]'} > table[data-pc-section="table"]`;
widths.forEach((width, index) => {
let style = `width: ${width}px; max-width: ${width}px`;
let style = `width: ${width}px !important; max-width: ${width}px !important`;
innerHTML += `
${selector} > thead[data-pc-section="thead"] > tr > th:nth-child(${index + 1}),
Expand Down
8 changes: 4 additions & 4 deletions components/lib/sidebar/style/SidebarStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ const css = `
.p-sidebar-full .p-sidebar {
transition: none;
transform: none;
width: 100vw;
height: 100vh;
width: 100vw !important;
height: 100vh !important;
max-height: 100%;
top: 0px;
left: 0px;
top: 0px !important;
left: 0px !important;
}
/* Animation */
Expand Down

0 comments on commit fc806e3

Please sign in to comment.