Skip to content

Commit 4392ef9

Browse files
authored
Fix: uui-card-media: flex-direction of "content" (#1105)
fix(uui-card-media): flex-direction of "content" to display the `detail` below the `name`.
1 parent def7b1b commit 4392ef9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/uui-card-media/lib/uui-card-media.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export class UUICardMediaElement extends UUICardElement {
209209
position: relative;
210210
display: flex;
211211
width: 100%;
212-
align-items: center;
212+
flex-direction: column;
213213
font-family: inherit;
214214
box-sizing: border-box;
215215
text-align: left;

packages/uui-card-media/lib/uui-card-media.story.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ type Story = StoryObj;
4141

4242
export const Default: Story = {};
4343

44+
export const WithDetail: Story = {
45+
args: {
46+
detail: 'The detail',
47+
},
48+
};
49+
4450
export const Folder: Story = {
4551
args: {
4652
fileExt: '',

0 commit comments

Comments
 (0)