mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 18:07:18 +00:00
* fix(nc-gui): add background color for row on hover in grid view * fix(nc-gui): reduce width of index column * fix(nc-gui): on hover grid row bg opacity issue * fix(nc-gui): reduce font size and grid cell height * fix(nc-gui): reduce font size * fix(nc-gui): set column default width to 180px * fix(nc-gui): revert sidebar changes * fix(nc-gui): disable grid row hover effect if fillMode is true * fix(nc-gui): display checkbox & row expand icon if it is active row * fix(nc-gui): increase the weight of display value cell * fix(nc-gui): grid cell should have constant padding * fix(nc-gui): att cell row height auto increase issue * fix(nc-gui): att cell center align issue * fix(nc-gui): percent cell spacing issue * fix(nc-gui): text overflow ellipsis * fix(nc-gui): single select auto increase height issue if rowHeight is short * fix(nc-gui): grayed out header text color * fix(nc-gui): reduce header icon size * fix(nc-gui): set 12px grid header horizontal padding * fix(nc-gui): center align expand icon for short row height * fix(nc-gui): rich text and select type field auto row height increase issue * fix(nc-gui): lookup cell auto increase height issue * fix(nc-gui): small changes * fix(nc-gui): truncate text after no. of lines base on rowHeight * fix(nc-gui): barcode & qrcode cell row height issue * chore(nc-gui): lint * fix(test): update row height pw test * fix(test): grid toolbar rowHeight test update * fix(nc-gui): ai review changes * fix(test): multiselect pw test update * fix(test): verify multiselct options test update * fix(nc-gui): merge conflicts * fix(nc-gui): small changes * fix(nc-gui): small changes * fix(nc-gui): display value should be in blue color
27 lines
589 B
TypeScript
27 lines
589 B
TypeScript
import BasePage from '../../Base';
|
|
import { GridPage } from './index';
|
|
|
|
export class RowPageObject extends BasePage {
|
|
readonly grid: GridPage;
|
|
|
|
constructor(grid: GridPage) {
|
|
super(grid.rootPage);
|
|
this.grid = grid;
|
|
}
|
|
|
|
get() {
|
|
return this.rootPage.locator('tr.nc-grid-row');
|
|
}
|
|
|
|
getRecord(index: number) {
|
|
return this.get().nth(index);
|
|
}
|
|
|
|
// style="height: 32px;"
|
|
async getRecordHeight(index: number) {
|
|
const record = this.getRecord(index);
|
|
const style = await record.getAttribute('style');
|
|
return style.split(':')[1].split(';')[0].trim();
|
|
}
|
|
}
|