fix(core): update

This commit is contained in:
Philipp Kunz 2023-10-20 11:17:42 +02:00
parent 50a84f2422
commit 555fa32ac2
2 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@design.estate/dees-catalog', name: '@design.estate/dees-catalog',
version: '1.0.224', version: '1.0.225',
description: 'website for lossless.com' description: 'website for lossless.com'
} }

View File

@ -609,8 +609,8 @@ export class DeesTable<T> extends DeesElement {
// Get computed width // Get computed width
const width = window.getComputedStyle(cell).width; const width = window.getComputedStyle(cell).width;
if (cell.textContent.includes('Actions')) { if (cell.textContent.includes('Actions')) {
cell.style.minWidth = '68px'; const neededWidth = this.dataActions.filter(actionArg => actionArg.type.includes('inRow')).length * 35;
cell.style.width = `${this.dataActions.filter(actionArg => actionArg.type.includes('inRow')).length * 35}px`; cell.style.width = `${Math.max(neededWidth, 68)}px`;
} else { } else {
cell.style.width = width; cell.style.width = width;
} }