Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

UI fix: Tables appearing too wide on the screen (#2022)

Martin Peeters2eea97c961e2
diff --git a/ui/component/or-mwc-components/src/or-mwc-table.ts b/ui/component/or-mwc-components/src/or-mwc-table.ts
index 171656a49..0e8d6a0fa 100644
--- a/ui/component/or-mwc-components/src/or-mwc-table.ts
+++ b/ui/component/or-mwc-components/src/or-mwc-table.ts
@@ -706,7 +706,7 @@ export class OrMwcTable extends LitElement {
}
protected getMaxColumnWidth(index: number, columns?: string[] | TableColumn[], tableWidthPx?: number): string | undefined {
- return tableWidthPx ? (`${tableWidthPx / (columns?.length || 2)}px`) : undefined;
+ return undefined;
}
}