mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
[SM-402] Truncate dialog headers (#4854)
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
<div
|
<div
|
||||||
class="tw-flex tw-items-center tw-gap-4 tw-border-0 tw-border-b tw-border-solid tw-border-secondary-300 tw-p-4"
|
class="tw-flex tw-items-center tw-gap-4 tw-border-0 tw-border-b tw-border-solid tw-border-secondary-300 tw-p-4"
|
||||||
>
|
>
|
||||||
<h1 bitDialogTitleContainer class="tw-mb-0 tw-grow tw-text-lg tw-uppercase">
|
<h1 bitDialogTitleContainer class="tw-mb-0 tw-grow tw-truncate tw-text-lg tw-uppercase">
|
||||||
<ng-content select="[bitDialogTitle]"></ng-content>
|
<ng-content select="[bitDialogTitle]"></ng-content>
|
||||||
</h1>
|
</h1>
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -82,6 +82,12 @@ Small.args = {
|
|||||||
title: "Small",
|
title: "Small",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const LongTitle = Template.bind({});
|
||||||
|
LongTitle.args = {
|
||||||
|
dialogSize: "small",
|
||||||
|
title: "Long_Title_That_Should_Be_Truncated",
|
||||||
|
};
|
||||||
|
|
||||||
export const Large = Template.bind({});
|
export const Large = Template.bind({});
|
||||||
Large.args = {
|
Large.args = {
|
||||||
dialogSize: "large",
|
dialogSize: "large",
|
||||||
|
|||||||
Reference in New Issue
Block a user