Skip to content

Commit

Permalink
add border
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfig committed Jan 29, 2025
1 parent 00f6fdc commit 978a6f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions quadratic-client/src/app/gridGL/cells/tables/TableColumnHeaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,17 @@ export class TableColumnHeaders extends Container {
});
this.background.moveTo(this.table.tableBounds.width, 0);
this.background.lineTo(this.table.tableBounds.width, this.headerHeight);

if (this.table.inOverHeadings && active) {
}
}
this.background.lineStyle({
color: getCSSVariableTint(this.table.active ? 'primary' : 'muted-foreground'),
width: 1,
alignment: 1,
});
this.background.moveTo(0, this.headerHeight);
this.background.lineTo(this.table.tableBounds.width, this.headerHeight);
};

private onSortPressed = (column: JsDataTableColumnHeader) => {
Expand Down
4 changes: 2 additions & 2 deletions quadratic-core/src/a1/cell_ref_range/to_table_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ mod tests {
fn test_check_for_table_ref_full_table() {
let context = A1Context::test(
&[("Sheet1", SheetId::test())],
&[("Table1", &["col1", "col2", "col3"], Rect::test_a1("A1:C3"))],
&[("Table1", &["col1", "col2", "col3"], Rect::test_a1("A1:C4"))],
);
let cell_ref_range = CellRefRange::Sheet {
range: RefRangeBounds::test_a1("A1:C3"),
range: RefRangeBounds::test_a1("A3:C4"),
};
let table_ref = cell_ref_range.check_for_table_ref(SheetId::test(), &context);

Expand Down

0 comments on commit 978a6f1

Please sign in to comment.