Skip to content

Commit

Permalink
fix: add word-wrap styling for parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Jan 24, 2024
1 parent 7a8df22 commit ab303a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/try-it-out.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/styler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class Styler {
.noPadding()
.add(Styler.cfg.parameterNameFieldTargetSelector)
.cloneFont(Styler.cfg.$fieldSource)
.style({ float: "right", width: "60px" })
.style({ float: "right", width: "60px", "word-wrap": "break-word" })
.add(Styler.cfg.parameterRequiredTargetSelector)
.noPadding()
.cloneFont(Styler.cfg.$requiredFieldSource)
Expand Down
1 change: 1 addition & 0 deletions src/utils/style-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ interface IStyle {
visibility?: "hidden" | "visible";
width?: number | string;
"z-index"?: number;
"word-wrap"?: "normal" | "break-word" | "initial" | "inherit";
}

class Style {
Expand Down

0 comments on commit ab303a4

Please sign in to comment.