Skip to content

dc.Table grouping indentation doesn't work #175

Description

@btonasse
/**
 * A single row inside the table.
 * @hidden
 */
export function TableRow<T>({ level, row, columns }: { level: number; row: T; columns: TableColumn<T>[] }) {
    return (
        <tr className="datacore-table-row" style={level ? `padding-left: ${level * 5}px` : undefined}>
            {columns.map((col) => (
                <TableRowCell row={row} column={col} />
            ))}
        </tr>
    );
}

padding-left on a <tr> tag doesn't do anything, at least not in Obsidian. The padding should instead apply to the first TableRowCell

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions