Skip to content

Commit

Permalink
IBX-7725: RTE area is hidden if custom-tag label is too long
Browse files Browse the repository at this point in the history
  • Loading branch information
vidarl committed Feb 6, 2024
1 parent d84efc4 commit 2a9ca9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class IbexaCustomTagEditing extends Plugin {
</button>`;

domElement.innerHTML = `
<div class="ibexa-custom-tag__header-title">${customTagConfig.label}</div>
<div class="ibexa-custom-tag__header-title" title="${customTagConfig.label}">${customTagConfig.label}</div>
<div class="ibexa-custom-tag__header-actions">
${Object.keys(customTagConfig.attributes).length ? attributesButton : ''}
<button type="button" class="ibexa-btn ibexa-btn--ghost ibexa-btn--small ibexa-btn--no-text ibexa-btn--remove-custom-tag">
Expand Down
7 changes: 7 additions & 0 deletions src/bundle/Resources/public/scss/_custom-tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
border-top-right-radius: $ibexa-border-radius;
}

&__header-title {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
width: 80%;
}

&[data-ezelement='eztemplateinline'] {
padding: calculateRem(4px) calculateRem(8px);
}
Expand Down

0 comments on commit 2a9ca9d

Please sign in to comment.