Skip to content

[Bug]: Invalid CSS syntax in chat node/widget causes font fallback to Times New Roman #23317

@modojaba

Description

@modojaba

Bug Description

In the Chat Node:

The CSS font-family declaration for the chat node/widget appears to be syntactically invalid, which causes the browser to ignore the entire font stack and render the content using the default serif font (usually Times New Roman).

The issue is that the entire font-family list is wrapped in parentheses.

Incorrect CSS Code (Observed in element styles):

font-family: (-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);

Proposed Fix

The parentheses must be removed, as they are invalid syntax for a CSS font-family property. The correct CSS should be:

font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

To Reproduce

Open Hosted Chat page

Expected behavior

The font should be rendered using the system font stack provided.

Debug Info

N/A

Operating System

N/A

n8n Version

2.0.2

Node.js Version

22

Database

PostgreSQL

Execution mode

queue

Hosting

self hosted

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:team-assignedA team has been assigned the issue or PRteam:nodesIssue is with the Nodes team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions