From 4f07aeb1ac0550e5bf15c0a7402edb2ac9654701 Mon Sep 17 00:00:00 2001 From: Louis Jimenez Date: Wed, 12 Jun 2019 13:49:20 -0400 Subject: [PATCH] fix(core): Make template table list scrollable (#7111) https://github.com/spinnaker/spinnaker/issues/4519 --- .../templates/v2/PipelineTemplatesV2.tsx | 86 +++++++++---------- .../search/infrastructure/infrastructure.less | 4 + 2 files changed, 44 insertions(+), 46 deletions(-) diff --git a/app/scripts/modules/core/src/pipeline/config/templates/v2/PipelineTemplatesV2.tsx b/app/scripts/modules/core/src/pipeline/config/templates/v2/PipelineTemplatesV2.tsx index df98738103f..f77b10e50c0 100644 --- a/app/scripts/modules/core/src/pipeline/config/templates/v2/PipelineTemplatesV2.tsx +++ b/app/scripts/modules/core/src/pipeline/config/templates/v2/PipelineTemplatesV2.tsx @@ -169,57 +169,51 @@ export class PipelineTemplatesV2 extends React.Component<{}, IPipelineTemplatesV -
+
{fetchError && ( -
- -
+ )} {searchPerformed && !resultsAvailable && ( -
-

No matches found for '{searchValue}'

-
+

No matches found for '{searchValue}'

)} {resultsAvailable && ( -
- - - - - - - - - - - {filteredResults.map(template => { - const { metadata } = template; - const id = idForTemplate(template); - return ( - - - - - - - ); - })} - -
NameOwnerUpdatedActions
{metadata.name || '-'}{metadata.owner || '-'}{this.getUpdateTimeForTemplate(template) || '-'} - - - - - -
-
+ + + + + + + + + + + {filteredResults.map(template => { + const { metadata } = template; + const id = idForTemplate(template); + return ( + + + + + + + ); + })} + +
NameOwnerUpdatedActions
{metadata.name || '-'}{metadata.owner || '-'}{this.getUpdateTimeForTemplate(template) || '-'} + + + + + +
)}
diff --git a/app/scripts/modules/core/src/search/infrastructure/infrastructure.less b/app/scripts/modules/core/src/search/infrastructure/infrastructure.less index 5015b425ad9..f04d2b27552 100644 --- a/app/scripts/modules/core/src/search/infrastructure/infrastructure.less +++ b/app/scripts/modules/core/src/search/infrastructure/infrastructure.less @@ -6,6 +6,10 @@ flex: 1 1 auto; height: 100%; + &-section__message { + text-align: center; + } + .infrastructure-section.container { overflow-y: auto; overflow-x: hidden;