mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
[CL-318] Ensure item content truncates when the 'start' slot is populated (#10727)
This commit is contained in:
parent
b0636bb39d
commit
991155d3a5
@ -1,7 +1,7 @@
|
|||||||
<div class="tw-flex tw-gap-2 tw-items-center tw-w-full">
|
<div class="tw-flex tw-gap-2 tw-items-center tw-w-full">
|
||||||
<ng-content select="[slot=start]"></ng-content>
|
<ng-content select="[slot=start]"></ng-content>
|
||||||
|
|
||||||
<div class="tw-flex tw-flex-col tw-items-start tw-text-start tw-w-full [&_p]:tw-mb-0">
|
<div class="tw-flex tw-flex-col tw-items-start tw-text-start tw-w-full tw-truncate [&_p]:tw-mb-0">
|
||||||
<div class="tw-text-main tw-text-base tw-w-full tw-truncate">
|
<div class="tw-text-main tw-text-base tw-w-full tw-truncate">
|
||||||
<ng-content></ng-content>
|
<ng-content></ng-content>
|
||||||
</div>
|
</div>
|
||||||
|
@ -115,6 +115,7 @@ export const TextOverflow: Story = {
|
|||||||
template: /*html*/ `
|
template: /*html*/ `
|
||||||
<bit-item>
|
<bit-item>
|
||||||
<bit-item-content>
|
<bit-item-content>
|
||||||
|
<i slot="start" class="bwi bwi-globe tw-text-3xl tw-text-muted" aria-hidden="true"></i>
|
||||||
Helloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo!
|
Helloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo!
|
||||||
<ng-container slot="secondary">Worlddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd!</ng-container>
|
<ng-container slot="secondary">Worlddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd!</ng-container>
|
||||||
</bit-item-content>
|
</bit-item-content>
|
||||||
|
Loading…
Reference in New Issue
Block a user