diff --git a/frontend/src/Components/Form/TagInputTag.css b/frontend/src/Components/Form/TagInputTag.css index d8c826208..97adac5c1 100644 --- a/frontend/src/Components/Form/TagInputTag.css +++ b/frontend/src/Components/Form/TagInputTag.css @@ -2,12 +2,21 @@ display: flex; justify-content: center; flex-direction: column; + max-width: 100%; height: 31px; } .link { composes: link from '~Components/Link/Link.css'; + max-width: 100%; + line-height: 1px; +} + +.linkWithEdit { + composes: link from '~Components/Link/Link.css'; + + max-width: calc(100% - 9px - 4px - 2px); line-height: 1px; } @@ -21,5 +30,11 @@ .editButton { composes: button from '~Components/Link/IconButton.css'; - width: auto; + width: 9px; +} + +.label { + composes: label from '~Components/Label.css'; + + max-width: 100%; } diff --git a/frontend/src/Components/Form/TagInputTag.css.d.ts b/frontend/src/Components/Form/TagInputTag.css.d.ts index 7369eca0e..510189d2c 100644 --- a/frontend/src/Components/Form/TagInputTag.css.d.ts +++ b/frontend/src/Components/Form/TagInputTag.css.d.ts @@ -3,7 +3,9 @@ interface CssExports { 'editButton': string; 'editContainer': string; + 'label': string; 'link': string; + 'linkWithEdit': string; 'tag': string; } export const cssExports: CssExports; diff --git a/frontend/src/Components/Form/TagInputTag.js b/frontend/src/Components/Form/TagInputTag.js index cc72f3555..004381924 100644 --- a/frontend/src/Components/Form/TagInputTag.js +++ b/frontend/src/Components/Form/TagInputTag.js @@ -48,20 +48,21 @@ class TagInputTag extends Component { kind, canEdit } = this.props; + return (