mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 18:23:31 +00:00
[CL-750][CL-751][CL-752] Fix nav item truncation, clickable area, and shield logo (#15522)
This commit is contained in:
@@ -68,6 +68,13 @@ export const WithoutIcon: Story = {
|
||||
},
|
||||
};
|
||||
|
||||
export const WithLongText: Story = {
|
||||
...Default,
|
||||
args: {
|
||||
text: "Hello World This Is a Cool Item",
|
||||
},
|
||||
};
|
||||
|
||||
export const WithoutRoute: Story = {
|
||||
render: () => ({
|
||||
template: `
|
||||
@@ -80,7 +87,7 @@ export const WithChildButtons: Story = {
|
||||
render: (args) => ({
|
||||
props: args,
|
||||
template: `
|
||||
<bit-nav-item text="Hello World" [route]="['']" icon="bwi-collection-shared">
|
||||
<bit-nav-item text="Hello World Very Cool World" [route]="['']" icon="bwi-collection-shared">
|
||||
<button
|
||||
slot="end"
|
||||
class="tw-ms-auto"
|
||||
@@ -106,8 +113,8 @@ export const MultipleItemsWithDivider: Story = {
|
||||
render: (args) => ({
|
||||
props: args,
|
||||
template: `
|
||||
<bit-nav-item text="Hello World" icon="bwi-collection-shared"></bit-nav-item>
|
||||
<bit-nav-item text="Hello World" icon="bwi-collection-shared"></bit-nav-item>
|
||||
<bit-nav-item text="Hello World"></bit-nav-item>
|
||||
<bit-nav-item text="Hello World Long Text Long"></bit-nav-item>
|
||||
<bit-nav-divider></bit-nav-divider>
|
||||
<bit-nav-item text="Hello World" icon="bwi-collection-shared"></bit-nav-item>
|
||||
<bit-nav-item text="Hello World" icon="bwi-collection-shared"></bit-nav-item>
|
||||
|
||||
Reference in New Issue
Block a user