mirror of
https://github.com/docmost/docmost.git
synced 2026-05-21 01:04:39 +08:00
feat: table enhancement (#2191)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export function getColStyleDeclaration(minWidth: number, width: number | undefined): [string, string] {
|
||||
if (width) {
|
||||
return ['width', `${Math.max(width, minWidth)}px`]
|
||||
}
|
||||
|
||||
return ['min-width', `${minWidth}px`]
|
||||
}
|
||||
Reference in New Issue
Block a user