diff --git a/static/third/bootstrap/css/bootstrap.css b/static/third/bootstrap/css/bootstrap.css index ef4330f7db..23de9383f0 100644 --- a/static/third/bootstrap/css/bootstrap.css +++ b/static/third/bootstrap/css/bootstrap.css @@ -2008,6 +2008,16 @@ table { vertical-align: bottom; } +.table .json-api-example { + width: fit-content; + max-width: 300px; + word-wrap: break-word; +} + +.table .json-api-example code { + white-space: pre-wrap; +} + .table caption + thead tr:first-child th, .table caption + thead tr:first-child td, .table colgroup + thead tr:first-child th, diff --git a/zerver/lib/bugdown/api_arguments_table_generator.py b/zerver/lib/bugdown/api_arguments_table_generator.py index 885f8081d1..d55c332133 100644 --- a/zerver/lib/bugdown/api_arguments_table_generator.py +++ b/zerver/lib/bugdown/api_arguments_table_generator.py @@ -105,7 +105,7 @@ class APIArgumentsTablePreprocessor(Preprocessor): tr = """
{argument}{example}{example}