Skip to content

Commit 20a88e5

Browse files
Merge pull request #86 from advanced-rest-client/fix/W-15595102/word-break
Fix/w 15595102/word break
2 parents 2f0ee40 + 8f88955 commit 20a88e5

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@api-components/api-method-documentation",
33
"description": "A HTTP method documentation build from AMF model",
4-
"version": "5.2.20",
4+
"version": "5.2.21",
55
"license": "Apache-2.0",
66
"main": "index.js",
77
"module": "index.js",

src/Styles.js

+16-1
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,16 @@ api-security-documentation:last-of-type {
292292
font-style: normal;
293293
font-weight: 400;
294294
line-height: normal;
295-
font-family: var(--api-method-documentation-async-server-names-title-font,Helvetica)
295+
font-family: var(--api-method-documentation-async-server-names-title-font,Helvetica);
296+
margin-right: 10px;
296297
}
297298
298299
.async-servers .async-server-names-container{
299300
margin-top: 16px;
300301
margin-bottom: 10px;
302+
display: flex;
303+
flex-wrap: wrap;
304+
align-items: center;
301305
}
302306
303307
.async-servers .async-server-name{
@@ -313,6 +317,17 @@ api-security-documentation:last-of-type {
313317
border: 1px solid var(--api-method-documentation-async-server-names-border-color,#506773);;
314318
padding: 1px 8px 1px 8px;
315319
margin-right: 10px;
320+
display: flex;
321+
flex-direction: column;
322+
justify-content: center;
323+
word-break: auto-phrase;
324+
max-width: fit-content;
325+
}
326+
327+
@media (max-width: 385px) {
328+
.async-servers .async-server-name {
329+
margin-bottom: 10px;
330+
}
316331
}
317332
318333
.async-method-security{

0 commit comments

Comments
 (0)