mirror of
https://github.com/bitwarden/browser
synced 2026-02-12 14:34:02 +00:00
remove title truncate
This commit is contained in:
@@ -34,12 +34,12 @@ let nextId = 0;
|
||||
@Component({
|
||||
selector: "bit-callout",
|
||||
templateUrl: "callout.component.html",
|
||||
imports: [A11yTitleDirective, SharedModule, TypographyModule],
|
||||
imports: [SharedModule, TypographyModule],
|
||||
})
|
||||
export class CalloutComponent {
|
||||
readonly type = input<CalloutTypes>("info");
|
||||
readonly icon = input<string>();
|
||||
readonly title = input<string>();
|
||||
readonly title = input<string | null>();
|
||||
readonly truncate = input(false);
|
||||
readonly useAlertRole = input(false);
|
||||
readonly iconComputed = computed(() =>
|
||||
|
||||
@@ -173,20 +173,3 @@ export const TruncateOnlyContent: Story = {
|
||||
truncate: true,
|
||||
},
|
||||
};
|
||||
|
||||
export const TruncateOnlyTitle: Story = {
|
||||
render: (args) => ({
|
||||
props: args,
|
||||
template: `
|
||||
<div style="width: 300px;">
|
||||
<bit-callout ${formatArgsForCodeSnippet<CalloutComponent>(args)}>
|
||||
</bit-callout>
|
||||
</div>
|
||||
`,
|
||||
}),
|
||||
args: {
|
||||
title:
|
||||
"This is a really long title that should truncate. Like really, really, really, ridiculously long title",
|
||||
truncate: true,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user