Class DefaultForumCommentComponent

java.lang.Object
io.mindspice.simplypages.components.forum.comments.DefaultForumCommentComponent
All Implemented Interfaces:
ForumCommentComponent, Component

public class DefaultForumCommentComponent extends Object implements ForumCommentComponent
Default flat comment card with raw depth metadata and bounded CSS indentation.

Every card emits the configured signed int as data-depth. Only the visual class is clamped to forum-comment-depth-0 through forum-comment-depth-4; negative depths look like zero. Framework CSS indents from the logical start by 16px per level (8px at viewport widths up to 920px), limited to 8% of the containing inline size. Host CSS can override these defaults.

Depth and parent ID are independent metadata, not a validated hierarchy. Rendering keeps configured state unchanged and dispatches body/actions with the supplied context. Templates retain live rendering, including later configuration and subclass overrides. Finish configuration before sharing; contexts and child delegates have their own sharing requirements.