change(ui) - capitalize first letter
This commit is contained in:
parent
f96100fea9
commit
af23769d74
4 changed files with 7 additions and 3 deletions
|
|
@ -111,7 +111,7 @@ function WidgetWrapper(props: Props) {
|
|||
<div
|
||||
className={cn("p-3 pb-4 flex items-center justify-between", { "cursor-move" : !isTemplate && isWidget })}
|
||||
>
|
||||
<div className="capitalize w-full font-medium">{widget.name}</div>
|
||||
<div className="capitalize-first w-full font-medium">{widget.name}</div>
|
||||
{isWidget && (
|
||||
<div className="flex items-center" id="no-print">
|
||||
{!isPredefined && isTimeSeries && (
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ function PageTitle({ title, actionButton = null, subTitle = '', className = '',
|
|||
return (
|
||||
<div>
|
||||
<div className='flex items-center'>
|
||||
<h1 className={cn("text-2xl", className)}>
|
||||
<h1 className={cn("text-2xl capitalize-first", className)}>
|
||||
{title}
|
||||
</h1>
|
||||
{ actionButton && actionButton}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ function SideMenuitem({
|
|||
<Icon name={ iconName } size={ iconSize } color={active ? 'teal' : iconColor} className="absolute" />
|
||||
</div>
|
||||
)}
|
||||
<span className={stl.title}>{ title }</span>
|
||||
<span className={cn(stl.title, 'capitalize-first')}>{ title }</span>
|
||||
</div>
|
||||
{ leading && leading }
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -2,4 +2,8 @@
|
|||
font-weight: 500;
|
||||
margin-bottom: 5px;
|
||||
color: '#888';
|
||||
}
|
||||
|
||||
.capitalize-first::first-letter {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue