File tree 1 file changed +8
-5
lines changed
src/components/CardHorizontal
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,9 @@ import { Icon, IconName } from "@/components";
4
4
5
5
type CardColor = "default" | "muted" ;
6
6
7
- export interface CardHorizontalProps extends HTMLAttributes < HTMLDivElement > {
8
- title ?: string ;
7
+ export interface CardHorizontalProps
8
+ extends Omit < HTMLAttributes < HTMLDivElement > , "title" > {
9
+ title ?: ReactNode ;
9
10
icon ?: IconName ;
10
11
disabled ?: boolean ;
11
12
description ?: ReactNode ;
@@ -17,18 +18,19 @@ export interface CardHorizontalProps extends HTMLAttributes<HTMLDivElement> {
17
18
const Header = styled . div `
18
19
display: flex;
19
20
flex-direction: column;
20
- align-items: center ;
21
- width: fit-content ;
21
+ align-items: start ;
22
+ width: 100% ;
22
23
max-width: 100%;
23
24
gap: inherit;
24
25
` ;
25
26
26
27
const Description = styled . div `
27
28
display: flex;
28
29
flex-direction: column;
29
- align-self: center ;
30
+ align-self: start ;
30
31
gap: ${ ( { theme } ) => theme . click . card . horizontal . space . gap } ;
31
32
flex: 1;
33
+ width: 100%;
32
34
` ;
33
35
34
36
const Wrapper = styled . div < {
@@ -123,6 +125,7 @@ const CardIcon = styled(Icon)`
123
125
const ContentWrapper = styled . div `
124
126
display: flex;
125
127
flex-direction: column;
128
+ width: 100%;
126
129
` ;
127
130
128
131
export const CardHorizontal = ( {
You can’t perform that action at this time.
0 commit comments