Open jayt08 opened 3 years ago
Automention: Hey @patricklafrance @shilman, you've been tagged! Can you give a hand here?
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
Is this still an issue in 7.0 beta @jayt08 ?
Describe the bug Impossible to describe multiline code fragment at description column with
argTypes
, it forced towhitespace: nowrap;
by jssTo Reproduce Write a story. Describe argTypes with multiline code at description parameter.
Expected behavior
at description column
Fact behavior
at description column
Screenshots expected:![image](https://user-images.githubusercontent.com/3120544/99518209-535cdb80-29a1-11eb-8a5f-9e84c1aa8f68.png)
fact:![image](https://user-images.githubusercontent.com/3120544/99518131-388a6700-29a1-11eb-90d9-d72ef36b1f49.png)
Code snippets
System
Additional context Maybe it is possible to add some css-modification for multiline code sections, to override
whitespace: nowrap;
or inject some styles for description cell if necessary?Edit Actually, the problem is sb's jss dont recognize
<pre><code /></pre>
Possible solution is just add somepre > code
jss, which will overwritewhitespace: nowrap;
towhitespace: pre;
Edit2 Solved this with
<style />
section added into./storybook/manager-head.html
. This works but looks hacky.