Skip to content

Commit

Permalink
fix(text-expand): remove margin and add padding in ng-content to fix …
Browse files Browse the repository at this point in the history
…cutoff abstract

note: margins should not be used within gn-ui max-lines component since getBoundingClientRect calculating the needed max height does not take them into account
  • Loading branch information
tkohr committed Sep 5, 2024
1 parent 1ab9d85 commit 44a20e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h2 class="mel-section-title mb-6" translate>mel.dataset.abstract</h2>
[showContent]="fieldReady('abstract')"
>
<mel-datahub-text-expand [maxLines]="3"
><div class="sm:block text-2xl">
><div class="sm:block text-2xl pb-8">
<gn-ui-markdown-parser
[textContent]="record.abstract"
></gn-ui-markdown-parser></div
Expand Down
2 changes: 1 addition & 1 deletion libs/mel/src/lib/text-expand/text-expand.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div
#container
class="overflow-hidden transition-[max-height] duration-300 mb-8 relative"
class="overflow-hidden transition-[max-height] duration-300 relative"
[ngClass]="isExpanded || !showToggleButton ? 'ease-in' : 'ease-out'"
[style.maxHeight]="maxHeight"
>
Expand Down

0 comments on commit 44a20e9

Please sign in to comment.