MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / sizeToCSS

Function sizeToCSS

apps/client/src/code/utils/misc.ts:108–114  ·  view source on GitHub ↗
(size: string)

Source from the content-addressed store, hash-verified

106}
107
108export function sizeToCSS(size: string): string {
109 if (isNumeric(size)) {
110 return `${size}px`;
111 } else {
112 return 'auto';
113 }
114}
115
116export function getNameInitials(name: string): string {
117 const nameParts = splitStr(name.trim(), ' ');

Callers 1

makeSectionHeightCSSFunction · 0.90

Calls 1

isNumericFunction · 0.90

Tested by

no test coverage detected