diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-03 20:47:39 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-03 20:47:39 +0800 |
commit | 45b9647ba0b5a29b0c021327398fe703c3ae1427 (patch) | |
tree | d15e7ca7a87d551ddbbfecc426bb4088e26a933f /packages | |
parent | 160f74d53e8878a62619c3641b46da7f0c6d2b59 (diff) | |
download | dexon-0x-contracts-45b9647ba0b5a29b0c021327398fe703c3ae1427.tar dexon-0x-contracts-45b9647ba0b5a29b0c021327398fe703c3ae1427.tar.gz dexon-0x-contracts-45b9647ba0b5a29b0c021327398fe703c3ae1427.tar.bz2 dexon-0x-contracts-45b9647ba0b5a29b0c021327398fe703c3ae1427.tar.lz dexon-0x-contracts-45b9647ba0b5a29b0c021327398fe703c3ae1427.tar.xz dexon-0x-contracts-45b9647ba0b5a29b0c021327398fe703c3ae1427.tar.zst dexon-0x-contracts-45b9647ba0b5a29b0c021327398fe703c3ae1427.zip |
Fix small bug where onHover type declarations with comments was taking up the entire window width
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/ts/pages/documentation/type_definition.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/website/ts/pages/documentation/type_definition.tsx b/packages/website/ts/pages/documentation/type_definition.tsx index d46eec76c..02bf63258 100644 --- a/packages/website/ts/pages/documentation/type_definition.tsx +++ b/packages/website/ts/pages/documentation/type_definition.tsx @@ -113,7 +113,9 @@ export class TypeDefinition extends React.Component<TypeDefinitionProps, TypeDef <code className="hljs">{codeSnippet}</code> </pre> </div> - {customType.comment && <Comment comment={customType.comment} className="py2" />} + <div style={{ maxWidth: 620 }}> + {customType.comment && <Comment comment={customType.comment} className="py2" />} + </div> </div> ); } |