@@ -39,9 +39,9 @@ const STATUS_CONFIG = (theme) => ({
3939} ) ;
4040
4141const SIZE_CONFIG = {
42- small : { height : 36 , padding : '0 8px' , fontSize : '14px ' } ,
43- medium : { height : 36 , padding : '0 8px' , fontSize : '14px ' } ,
44- full : { height : 44 , padding : '0 16px' , fontSize : '14px ' } ,
42+ small : { height : 36 , padding : '0 8px' , fontSize : '12px ' } ,
43+ medium : { height : 36 , padding : '0 8px' , fontSize : '12px ' } ,
44+ full : { height : 44 , padding : '0 16px' , fontSize : '12px ' } ,
4545} ;
4646
4747export const StatusBar = ( { status, size, message, tooltip } ) => {
@@ -61,7 +61,7 @@ export const StatusBar = ({ status, size, message, tooltip }) => {
6161 borderRadius : size === 'full' ? '0px' : '17px' ,
6262 backgroundColor : statusConfig . bg ,
6363 border : `1px solid ${ statusConfig . bg } ` ,
64- width : size === 'full' ? '100%' : 'auto ' ,
64+ width : size === 'full' ? '100%' : 'fit-content ' ,
6565 } }
6666 >
6767 { statusConfig . icon }
@@ -99,7 +99,7 @@ export const StatusBar = ({ status, size, message, tooltip }) => {
9999 < Typography
100100 sx = { {
101101 fontWeight : 600 ,
102- fontSize : 14 ,
102+ fontSize : 12 ,
103103 lineHeight : 0 ,
104104 marginRight : 0.5 ,
105105 color : ( theme ) => theme . palette . secondary . main ,
@@ -117,13 +117,20 @@ export const StatusBar = ({ status, size, message, tooltip }) => {
117117 sx : {
118118 backgroundColor : ( theme ) => theme . palette . neutral . neutral04 . main ,
119119 color : ( theme ) => theme . palette . secondary . main ,
120+ padding : '8px 12px' ,
121+ borderRadius : '6px' ,
122+ boxShadow : ( theme ) => theme . shadows [ 3 ] ,
123+
124+ '& .MuiTooltip-arrow' : {
125+ color : ( theme ) => theme . palette . neutral . neutral04 . main ,
126+ } ,
120127 } ,
121128 } ,
122129 } }
123130 >
124- < span style = { { marginLeft : size === 'small' ? 8 : 0 } } >
131+ < Box sx = { { ml : size === 'small' ? 1 : 0 , display : 'flex' , alignItems : 'center' , width : 12 } } >
125132 < CircleHelp size = { 12 } color = { theme . palette . secondary . main } />
126- </ span >
133+ </ Box >
127134 </ Tooltip >
128135 </ Box >
129136 ) ;
@@ -135,8 +142,3 @@ StatusBar.propTypes = {
135142 message : PropTypes . string ,
136143 tooltip : PropTypes . string ,
137144} ;
138-
139- StatusBar . defaultProps = {
140- size : 'medium' ,
141- message : '' ,
142- } ;
0 commit comments