Skip to content

feat(docs cell-style): table cell borders + vertical alignment + padding, plus updateTableRowStyle / pinTableHeaderRows #855

Description

@sebsnyk

Table styling in gog docs stops at cell background and inline text style (cell-style --background-color/--text-color/--bold/--italic/--underline). The remaining updateTableCellStyle fields and the sibling row/header requests are not exposed, so any border, padding, vertical-alignment, row-height, or header-row change forces a full table rebuild.

Missing, all already in the API:

updateTableCellStyle (extend existing cell-style):

  • borders: borderTop/Bottom/Left/Right (width, color, dashStyle)
  • paddingTop/Bottom/Left/Right
  • contentAlignment (TOP / MIDDLE / BOTTOM)

updateTableRowStyle (new command, e.g. table-row style):

  • minRowHeight
  • tableHeader (mark a row as the repeating header)
  • preventOverflow

pinTableHeaderRows (new command, e.g. table pin-header --rows N).

Proposed cell-style additions:

--border-top/bottom/left/right=WIDTHpt[,#RRGGBB[,SOLID|DOT|DASH]]
--border-all=...
--padding-top/bottom/left/right=PT   (--padding-all=PT)
--content-align=top|middle|bottom

These all extend the UpdateTableCellStyleRequest the command already constructs (just a wider fieldmask), except updateTableRowStyle / pinTableHeaderRows, which are new builders. This completes surgical table styling so cell/row appearance edits stop requiring a rebuild.

Ref: documents.batchUpdate UpdateTableCellStyleRequest, UpdateTableRowStyleRequest, PinTableHeaderRowsRequest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions