Skip to content

fix: hide article like header when disabled - #24

Open
stevenjoezhang wants to merge 1 commit into
anghunk:mainfrom
stevenjoezhang:agent/hide-disabled-article-like-header
Open

fix: hide article like header when disabled#24
stevenjoezhang wants to merge 1 commit into
anghunk:mainfrom
stevenjoezhang:agent/hide-disabled-article-like-header

Conversation

@stevenjoezhang

Copy link
Copy Markdown

Summary

  • hide the entire comments header when article likes are disabled
  • remove the redundant inline visibility style from the child like container

Problem

When enableArticleLike is false, the widget hides .cwd-like but still renders .cwd-comments-header. The header keeps its 16px 0 padding, leaving an empty vertical gap above the comment form.

Impact

The empty gap is removed when article likes are disabled. The enabled article-like UI is unchanged.

Validation

  • npm run build in docs/widget

@stevenjoezhang
stevenjoezhang marked this pull request as ready for review July 29, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant