MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / fixHeight

Function fixHeight

src/components/Workspace/TopDrawer/index.tsx:127–150  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

125 }
126 }
127 function fixHeight(type: string): number {
128 switch (type) {
129 case 'bubble':
130 return 300;
131 case 'icon':
132 return 50;
133 case 'avatar':
134 return 300;
135 case 'tag':
136 return 100;
137 case 'text':
138 return 100;
139 case 'table':
140 return 311;
141 case 'imgCard':
142 return 600;
143 case 'listAnimation':
144 return 850;
145 case 'listAndDetailsAnimation':
146 return 900;
147 default:
148 return 300;
149 }
150 }
151 function closeAiChart() {
152 setIsVisibleAi(false)
153 }

Callers 1

afterSelectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected