Skip to content

Commit

Permalink
Fix issue with long texts on templates tooltips (#4085)
Browse files Browse the repository at this point in the history
Signed-off-by: Cintia Sánchez García <[email protected]>
  • Loading branch information
cynthia-sg authored Oct 8, 2024
1 parent 00988b2 commit 088b92b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions web/src/layout/package/chartTemplates/Template.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
animation: blinker 1s linear 1;
}

.definedTemplate {
max-width: 480px;
min-width: 350px;
}

@keyframes blinker {
50% {
opacity: 1;
Expand Down
2 changes: 1 addition & 1 deletion web/src/layout/package/chartTemplates/Template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const Template = (props: Props) => {
element={<span className={`${styles.tmplDefinedTemplate} ${styles[`${effective}Theme`]}`}>{word}</span>}
info={
<div className="d-flex flex-column p-2">
<div className="text-nowrap">
<div className={styles.definedTemplate}>
Template defined in <span className="fw-bold">{templateInHelper.template}</span> line{' '}
<span className="fw-bold">{templateInHelper.line}</span>
</div>
Expand Down

0 comments on commit 088b92b

Please sign in to comment.