mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-08-09 18:33:05 +02:00
#705 - Style fixes
This commit is contained in:
@@ -497,7 +497,7 @@
|
||||
"panel.seoDetails.recommended": "Recommended",
|
||||
|
||||
"panel.seoKeywords.checks": "Checks",
|
||||
"panel.seoKeywords.density.tableTitle": "Freq.",
|
||||
"panel.seoKeywords.density.tableTitle": "Frequency",
|
||||
"panel.seoKeywords.density": "Keyword density",
|
||||
"panel.seoKeywordInfo.validInfo.label": "Used in heading(s)",
|
||||
"panel.seoKeywordInfo.validInfo.content": "Content",
|
||||
|
||||
@@ -1605,7 +1605,7 @@ export enum LocalizationKey {
|
||||
*/
|
||||
panelSeoKeywordsChecks = 'panel.seoKeywords.checks',
|
||||
/**
|
||||
* Freq.
|
||||
* Frequency
|
||||
*/
|
||||
panelSeoKeywordsDensityTableTitle = 'panel.seoKeywords.density.tableTitle',
|
||||
/**
|
||||
|
||||
@@ -42,11 +42,11 @@ const SeoKeywordInfo: React.FunctionComponent<ISeoKeywordInfoProps> = ({
|
||||
const densityTitle = `${density.toFixed(2)}* %`;
|
||||
|
||||
if (density < 0.75) {
|
||||
return <ValidInfo label={densityTitle} isValid={false} className='text-[12px]' />;
|
||||
return <span className='text-[12px] text-[var(--vscode-statusBarItem-warningBackground)]'>{densityTitle}</span>;
|
||||
} else if (density >= 0.75 && density < 1.5) {
|
||||
return <ValidInfo label={densityTitle} isValid={true} className='text-[12px]' />;
|
||||
return <span className='text-[12px] text-[#1f883d]'>{densityTitle}</span>;
|
||||
} else {
|
||||
return <ValidInfo label={densityTitle} isValid={false} className='text-[12px]' />;
|
||||
return <span className='text-[12px] text-[var(--vscode-statusBarItem-warningBackground)]'>{densityTitle}</span>;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -144,7 +144,7 @@ const SeoKeywordInfo: React.FunctionComponent<ISeoKeywordInfoProps> = ({
|
||||
/>
|
||||
</div>
|
||||
</VSCodeTableCell>
|
||||
<VSCodeTableCell>
|
||||
<VSCodeTableCell className={`text-center`}>
|
||||
{checksMarkup}
|
||||
|
||||
<Tooltip
|
||||
|
||||
@@ -68,20 +68,16 @@ const SeoKeywords: React.FunctionComponent<ISeoKeywordsProps> = ({
|
||||
{localize(LocalizationKey.panelSeoKeywordsChecks)}
|
||||
</VSCodeTableHead>
|
||||
|
||||
<VSCodeTableHead className='text-center'>
|
||||
<div
|
||||
className='flex items-center justify-center h-full'
|
||||
>
|
||||
<span
|
||||
data-tooltip-id="tooltip-density"
|
||||
data-tooltip-content={localize(LocalizationKey.panelSeoKeywordsDensity)}>
|
||||
{localize(LocalizationKey.panelSeoKeywordsDensityTableTitle)}
|
||||
</span>
|
||||
<Tooltip id="tooltip-density" className={tooltipClasses} style={{
|
||||
fontSize: '12px',
|
||||
lineHeight: '19px'
|
||||
}} />
|
||||
</div>
|
||||
<VSCodeTableHead>
|
||||
<span
|
||||
data-tooltip-id="tooltip-density"
|
||||
data-tooltip-content={localize(LocalizationKey.panelSeoKeywordsDensity)}>
|
||||
{localize(LocalizationKey.panelSeoKeywordsDensityTableTitle)}
|
||||
</span>
|
||||
<Tooltip id="tooltip-density" className={tooltipClasses} style={{
|
||||
fontSize: '12px',
|
||||
lineHeight: '19px'
|
||||
}} />
|
||||
</VSCodeTableHead>
|
||||
</VSCodeTableRow>
|
||||
</VSCodeTableHeader>
|
||||
|
||||
Reference in New Issue
Block a user