Skip to content

Commit

Permalink
Add temporary width control to avoid flickering when resorting
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Oct 20, 2023
1 parent bb54ead commit 510eaf7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/src/components/Grid/GridList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ watch(operationMessage, () => {
</th>
</thead>
<tr v-for="(rowData, rowIndex) in gridData" :key="rowIndex" :class="{ 'grid-dark-row': rowIndex % 2 }">
<td v-for="(fieldEntry, fieldIndex) in gridConfig.fields" :key="fieldIndex" class="px-2 py-3">
<td
v-for="(fieldEntry, fieldIndex) in gridConfig.fields"
:key="fieldIndex"
class="px-2 py-3"
:style="{ width: fieldEntry.width }">
<GridOperations
v-if="fieldEntry.type == 'operations'"
:title="rowData.title"
Expand Down
1 change: 1 addition & 0 deletions client/src/components/Grid/configs/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export interface FieldOperations {
key: string;
title: string;
operations: Array<Operation>;
width?: string;
}

export type FieldKeyHandler = (data: RowData) => void;
Expand Down
1 change: 1 addition & 0 deletions client/src/components/Grid/configs/visualizations.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const VisualizationsGrid = {
title: "Title",
key: "title",
type: "operations",
width: "40%",
operations: [
{
title: "Open",
Expand Down

0 comments on commit 510eaf7

Please sign in to comment.