@@ -26,43 +26,72 @@ class AccountHeader extends GlimmerComponent<AccountHeaderArgs> {
26
26
<div class =' account-header-info' >
27
27
{{#if ( has-block ' name' ) }}
28
28
{{yield to =' name' }}
29
+ {{else }}
30
+ <h3 class =' account-header-name' >{{@ name }} </h3 >
29
31
{{/if }}
32
+
30
33
{{#if ( has-block ' content' ) }}
31
- {{yield to =' content' }}
34
+ <div class =' account-header-info-content' >
35
+ {{yield to =' content' }}
36
+ </div >
32
37
{{/if }}
33
38
</div >
34
39
</header >
35
40
36
41
<style scoped >
37
42
.account-header {
38
- display : flex ;
39
- align-items : start ;
40
- gap : var (--boxel-sp );
43
+ display : var ( --account-header-display , flex ) ;
44
+ align-items : var ( --account-header-align-items , start ) ;
45
+ gap : var (--account-header-gap , var ( -- boxel-sp) );
41
46
min-width : 0 ;
42
47
}
43
48
.account-header-logo {
44
49
flex-shrink : 0 ;
45
50
width : var (--account-header-logo-size , 60px );
46
51
height : var (--account-header-logo-size , 60px );
47
- object-fit : cover ;
48
- border-radius : var (--boxel-border-radius-xl );
52
+ object-fit : var (--account-header-logo-object-fit , cover );
53
+ border-radius : var (
54
+ --account-header-logo-border-radius ,
55
+ var (--boxel-border-radius-xl )
56
+ );
49
57
}
50
58
.default-icon-container {
51
59
display : var (--account-header-logo-display , flex );
52
- align-items : center ;
53
- justify-content : center ;
54
- background-color : var (--boxel-200 );
55
- color : var (--boxel-400 );
56
- padding : 5px ;
60
+ align-items : var (--account-header-logo-align-items , center );
61
+ justify-content : var (--account-header-logo-justify-content , center );
62
+ background-color : var (
63
+ --account-header-logo-background-color ,
64
+ var (--boxel-200 )
65
+ );
66
+ color : var (--account-header-logo-color , var (--boxel-400 ));
67
+ padding : var (--account-header-logo-padding , 5px );
57
68
}
58
69
.account-header-info {
59
- display : flex ;
60
- flex-direction : column ;
61
- gap : var (--boxel-sp-xxs );
70
+ display : var ( --account-header-info-display , flex ) ;
71
+ flex-direction : var ( --account-header-info-flex-direction , column ) ;
72
+ gap : var (--account-header-info-gap , var ( -- boxel-sp-xxs) );
62
73
min-width : 0 ;
63
74
width : 100% ;
64
75
overflow : hidden ;
65
76
}
77
+ .account-header-name {
78
+ margin : 0 ;
79
+ font : var (--account-header-name-font , 600 var (--boxel-font-med ));
80
+ letter-spacing : var (
81
+ --account-header-name-letter-spacing ,
82
+ var (--boxel-lsp-sm )
83
+ );
84
+ overflow : hidden ;
85
+ text-overflow : ellipsis ;
86
+ display : -webkit-box ;
87
+ -webkit-box-orient : vertical ;
88
+ -webkit-line-clamp : var (--account-header-name-line-clamp , 1 );
89
+ }
90
+ .account-header-info-content {
91
+ display : var (--account-header-info-content-display , flex );
92
+ flex-direction : var (--account-header-info-content-flex-direction , row );
93
+ gap : var (--account-header-info-content-gap , var (--boxel-sp-xxs ));
94
+ }
66
95
< /style >
67
96
</template >
68
97
}
0 commit comments