@@ -132,8 +132,8 @@ function FunctionSignature({
132132 < Row key = { id } id = { id } >
133133 < NameCell optional = { prop . optional } name = { prop . name } />
134134 < TypeCell type = { prop . type } typeLinkMap = { typeLinkMap } />
135- < td className = "p-3 block lg: table-cell lg:before:content-none before:content-['Type:_'] break-words" >
136- { linkify ( prop . type , typeLinkMap ) }
135+ < td className = "p-3 table-cell break-words" >
136+ { linkify ( prop . description || '' , typeLinkMap ) }
137137 </ td >
138138 </ Row >
139139 ) ;
@@ -175,12 +175,12 @@ function FunctionSignature({
175175
176176 return (
177177 < Row key = { id } id = { id } >
178- < td className = "relative block lg: table-cell pr-3" >
178+ < td className = "relative table-cell pr-3" >
179179 < code className = "bg-muted px-1.5 py-0.5 rounded text-xs whitespace-nowrap my-0" >
180180 { linkify ( type , typeLinkMap ) }
181181 </ code >
182182 </ td >
183- < td className = "p-3 block lg: table-cell lg:before:content-none before:content-['Description:_'] break-words" >
183+ < td className = "p-3 table-cell break-words" >
184184 { description && (
185185 < p className = "text-sm whitespace-pre-wrap !my-0 break-words" >
186186 { linkify ( description , typeLinkMap ) }
@@ -210,10 +210,7 @@ const Row: FC<{
210210 return (
211211 < tr
212212 id = { id }
213- className = { cn (
214- classes . card ,
215- 'group mb-2 block lg:table-row not-last:lg:border-b lg:mb-0'
216- ) }
213+ className = { cn ( classes . card , 'group mb-2 table-row not-last:border-b' ) }
217214 >
218215 { children }
219216 </ tr >
@@ -225,7 +222,7 @@ const NameCell: FC<{
225222 optional ?: boolean ;
226223} > = ( { name, optional } ) => {
227224 return (
228- < td className = "relative block lg: table-cell pr-3" >
225+ < td className = "relative table-cell pr-3" >
229226 { name && (
230227 < code
231228 className = { cn (
@@ -245,9 +242,7 @@ const TypeCell: FC<{
245242 typeLinkMap : TSDocProps [ 'typeLinkMap' ] ;
246243} > = ( { type, typeLinkMap } ) => {
247244 return (
248- < td className = "p-3 block lg:table-cell lg:before:content-none before:content-['Type:_'] break-words" >
249- { linkify ( type , typeLinkMap ) }
250- </ td >
245+ < td className = "p-3 table-cell break-words" > { linkify ( type , typeLinkMap ) } </ td >
251246 ) ;
252247} ;
253248
@@ -283,11 +278,9 @@ const FieldsTable: FC<{
283278 < TypeCell type = { field . type } typeLinkMap = { typeLinkMap } />
284279 < td
285280 className = { cn (
286- 'block lg:table-cell' ,
287- description
288- ? 'py-3 pt-0 px-3 lg:pt-3 before:content-["Type:_"] lg:before:content-none'
289- : 'lg:after:content-["-"]' ,
290- 'break-words overflow-hidden text-sm whitespace-pre-wrap [&_a]:no-underline [&_a]:font-normal [&_a]:hover:no-underline'
281+ 'table-cell p-3' ,
282+ ! description && 'after:content-["-"]' ,
283+ 'break-words overflow-hidden text-sm [&_a]:no-underline [&_a]:font-normal [&_a]:hover:no-underline'
291284 ) }
292285 >
293286 { linkify ( description , typeLinkMap ) }
0 commit comments