mirror of https://github.com/logseq/logseq
fix: style
parent
9371af9941
commit
1236a0adef
|
@ -61,7 +61,11 @@ const saveCached = (text: string, font: string, padding: number, size: [number,
|
|||
cache.set(key, size)
|
||||
}
|
||||
|
||||
export function getTextLabelSize(text: string, fontOrStyles: string | TLTextMeasureStyles, padding = 0) {
|
||||
export function getTextLabelSize(
|
||||
text: string,
|
||||
fontOrStyles: string | TLTextMeasureStyles,
|
||||
padding = 0
|
||||
) {
|
||||
if (!text) {
|
||||
return [16, 32]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue