Skip to content

Commit

Permalink
#705 - Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Nov 25, 2024
1 parent 147823b commit c02275d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 20 deletions.
2 changes: 1 addition & 1 deletion l10n/bundle.l10n.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/localization/localization.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,7 @@ export enum LocalizationKey {
*/
panelSeoKeywordsChecks = 'panel.seoKeywords.checks',
/**
* Freq.
* Frequency
*/
panelSeoKeywordsDensityTableTitle = 'panel.seoKeywords.density.tableTitle',
/**
Expand Down
8 changes: 4 additions & 4 deletions src/panelWebView/components/SeoKeywordInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
}
};

Expand Down Expand Up @@ -144,7 +144,7 @@ const SeoKeywordInfo: React.FunctionComponent<ISeoKeywordInfoProps> = ({
/>
</div>
</VSCodeTableCell>
<VSCodeTableCell>
<VSCodeTableCell className={`text-center`}>
{checksMarkup}

<Tooltip
Expand Down
24 changes: 10 additions & 14 deletions src/panelWebView/components/SeoKeywords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c02275d

Please sign in to comment.