aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-03 20:47:39 +0800
committerFabio Berger <me@fabioberger.com>2018-03-03 20:47:39 +0800
commit45b9647ba0b5a29b0c021327398fe703c3ae1427 (patch)
treed15e7ca7a87d551ddbbfecc426bb4088e26a933f /packages/website/ts/pages
parent160f74d53e8878a62619c3641b46da7f0c6d2b59 (diff)
downloaddexon-sol-tools-45b9647ba0b5a29b0c021327398fe703c3ae1427.tar.gz
dexon-sol-tools-45b9647ba0b5a29b0c021327398fe703c3ae1427.tar.zst
dexon-sol-tools-45b9647ba0b5a29b0c021327398fe703c3ae1427.zip
Fix small bug where onHover type declarations with comments was taking up the entire window width
Diffstat (limited to 'packages/website/ts/pages')
-rw-r--r--packages/website/ts/pages/documentation/type_definition.tsx4
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>
);
}