Skip to content

Commit

Permalink
Fix title field on keywords section #705
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Nov 24, 2024
1 parent fca8d26 commit e10ee11
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/panelWebView/components/Fields/FieldTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const FieldTitle: React.FunctionComponent<IFieldTitleProps> = ({
}, [icon]);

return (
<div className='flex items-center justify-between w-full mb-2'>
<div className='field__title flex items-center justify-between w-full mb-2'>
<label className={`metadata_field__label text-base text-[var(--vscode-foreground)] ${className || ''}`}>
{Icon}
<span style={{ lineHeight: '16px' }}>{label}</span>
Expand Down
2 changes: 0 additions & 2 deletions src/panelWebView/components/SeoKeywords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ const SeoKeywords: React.FunctionComponent<ISeoKeywordsProps> = ({

return (
<section className={`seo__keywords__table`}>
<h4 className='!text-left'>{localize(LocalizationKey.panelSeoKeywordsTitle)}</h4>

<VSCodeTable>
<VSCodeTableHeader>
<VSCodeTableRow className={`border-t border-t-[var(--vscode-editorGroup-border)]`}>
Expand Down
2 changes: 2 additions & 0 deletions src/panelWebView/components/SeoStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ const SeoStatus: React.FunctionComponent<ISeoStatusProps> = ({
</section>

<section className={`seo__keywords`}>
<h4 className='!text-left'>{localize(LocalizationKey.panelSeoKeywordsTitle)}</h4>

<SeoKeywords
keywords={metadata?.keywords}
title={metadata[titleField]}
Expand Down
3 changes: 2 additions & 1 deletion src/panelWebView/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,8 @@ vscode-divider {
/* SEO */
.seo {
.article__tags label,
.article__tags__items {
.article__tags__items,
.article__tags .field__title {
display: none;
}

Expand Down

0 comments on commit e10ee11

Please sign in to comment.