Skip to content

Commit

Permalink
moved inline styles to internal styles
Browse files Browse the repository at this point in the history
  • Loading branch information
swarnadipa-dev committed Dec 17, 2024
1 parent 416203f commit efb9cb4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
9 changes: 9 additions & 0 deletions ui/nuxeo-data-table/data-table-cell.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ import './data-table-templatizer-behavior.js';
:host([header]) ::slotted(*) {
min-width: 0;
}
:host([header]) ::slotted(#columnHeader) {
flex: 1 1 70px;
min-width: 70px;
max-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
text-align: start;
}
</style>
<slot></slot>
`;
Expand Down
7 changes: 6 additions & 1 deletion ui/nuxeo-data-table/data-table-column-sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,14 @@ import { I18nBehavior } from '../nuxeo-i18n-behavior.js';
right: 4px;
bottom: 8px;
}
#sortContainer {
position: relative;
width: 40px;
}
</style>
<div style="position: relative; width: 40px;">
<div id="sortContainer">
<paper-icon-button
id="sortIcon"
on-click="_sort"
Expand Down
8 changes: 1 addition & 7 deletions ui/nuxeo-data-table/data-table-column.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ import './data-table-column-filter.js';
role="columnheader"
>
</nuxeo-data-table-column-filter>
<div
title="[[column.name]]"
hidden$="[[column.filterBy]]"
role="columnheader"
style="flex: 1 1 70px; min-width: 70px;
max-width: 120px; overflow: hidden; text-overflow: ellipsis; text-align: start;"
>
<div id="columnHeader" title="[[column.name]]" hidden$="[[column.filterBy]]" role="columnheader">
[[column.name]]
</div>
</template>
Expand Down

0 comments on commit efb9cb4

Please sign in to comment.