Skip to content

Commit

Permalink
- revert dynamic table height (#2117)
Browse files Browse the repository at this point in the history
- app version = 1.1.13
  • Loading branch information
severinbeauvais authored Oct 19, 2022
1 parent 3e71fa0 commit baf6252
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
4 changes: 2 additions & 2 deletions auth-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion auth-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth-web",
"version": "1.1.12",
"version": "1.1.13",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
:class="{ 'header-high-layer': dropdown.includes(true) }"
:headers="getHeaders"
:items="businesses"
:height="getMaxHeight"
:custom-sort="customSort"
fixed-header
disable-pagination
Expand Down Expand Up @@ -177,6 +178,11 @@ export default class AffiliatedEntityTable extends Mixins(DateMixin) {
return this.headers?.filter(x => x.show)
}
/** The set height when affiliation count exceeds 5 */
private get getMaxHeight (): string {
return this.entityCount > 5 ? '32rem' : null
}
/** Returns true if the affiliation is a Name Request */
private isNameRequest (corpType: string): boolean {
return corpType === CorpType.NAME_REQUEST
Expand Down Expand Up @@ -528,17 +534,6 @@ export default class AffiliatedEntityTable extends Mixins(DateMixin) {
padding: .875rem;
}
// size the table according to window height
::v-deep .v-data-table__wrapper {
min-height: 9rem; // height of no-data div
height: calc(100vh - 31rem); // full height minus footer
background-color: $gray1; // hide unused space below table
table {
background-color: white;
}
}
.names-block {
display: table;
}
Expand Down

0 comments on commit baf6252

Please sign in to comment.