Restore important based on PrimeReact impl
parent
7602d716ea
commit
30efb09f44
|
@ -1308,7 +1308,7 @@ export default {
|
||||||
|
|
||||||
widths.forEach((width, index) => {
|
widths.forEach((width, index) => {
|
||||||
let colWidth = index === colIndex ? newColumnWidth : nextColumnWidth && index === colIndex + 1 ? nextColumnWidth : width;
|
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 += `
|
innerHTML += `
|
||||||
${selector} > thead[data-pc-section="thead"] > tr > th:nth-child(${index + 1}),
|
${selector} > thead[data-pc-section="thead"] > tr > th:nth-child(${index + 1}),
|
||||||
|
@ -1764,7 +1764,7 @@ export default {
|
||||||
let selector = `[data-pc-name="datatable"][${this.attributeSelector}] > [data-pc-section="wrapper"] ${this.virtualScrollerDisabled ? '' : '> [data-pc-name="virtualscroller"]'} > table[data-pc-section="table"]`;
|
let selector = `[data-pc-name="datatable"][${this.attributeSelector}] > [data-pc-section="wrapper"] ${this.virtualScrollerDisabled ? '' : '> [data-pc-name="virtualscroller"]'} > table[data-pc-section="table"]`;
|
||||||
|
|
||||||
widths.forEach((width, index) => {
|
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 += `
|
innerHTML += `
|
||||||
${selector} > thead[data-pc-section="thead"] > tr > th:nth-child(${index + 1}),
|
${selector} > thead[data-pc-section="thead"] > tr > th:nth-child(${index + 1}),
|
||||||
|
|
|
@ -49,11 +49,11 @@ const css = `
|
||||||
.p-sidebar-full .p-sidebar {
|
.p-sidebar-full .p-sidebar {
|
||||||
transition: none;
|
transition: none;
|
||||||
transform: none;
|
transform: none;
|
||||||
width: 100vw;
|
width: 100vw !important;
|
||||||
height: 100vh;
|
height: 100vh !important;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
top: 0px;
|
top: 0px !important;
|
||||||
left: 0px;
|
left: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Animation */
|
/* Animation */
|
||||||
|
|
Loading…
Reference in New Issue