From b4766d7be4e7c64f8077dc30a81a2cbc909bca80 Mon Sep 17 00:00:00 2001 From: Will Abson Date: Tue, 28 Jun 2016 09:25:21 +0100 Subject: [PATCH] Hide search results modified by and modified at cols on smaller screens Refs #228 --- .../app/components/search/search.component.ts | 5 +++++ .../src/components/alfresco-search.component.html | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/demo-shell-ng2/app/components/search/search.component.ts b/demo-shell-ng2/app/components/search/search.component.ts index 77067b5ff6..2bc7c5302c 100644 --- a/demo-shell-ng2/app/components/search/search.component.ts +++ b/demo-shell-ng2/app/components/search/search.component.ts @@ -36,6 +36,11 @@ declare let __moduleName: string; :host tbody tr { cursor: pointer; } + @media screen and (max-width: 600px) { + :host .col-modified-at, :host .col-modified-by { + display: none; + } + } `], directives: [ ALFRESCO_SEARCH_DIRECTIVES, VIEWERCOMPONENT ] }) diff --git a/ng2-components/ng2-alfresco-search/src/components/alfresco-search.component.html b/ng2-components/ng2-alfresco-search/src/components/alfresco-search.component.html index 54f0371a7c..75f2147f21 100644 --- a/ng2-components/ng2-alfresco-search/src/components/alfresco-search.component.html +++ b/ng2-components/ng2-alfresco-search/src/components/alfresco-search.component.html @@ -4,13 +4,13 @@ - + {{'SEARCH.RESULTS.COLUMNS.NAME' | translate}} - + {{'SEARCH.RESULTS.COLUMNS.MODIFIED_BY' | translate}} - + {{'SEARCH.RESULTS.COLUMNS.MODIFIED_AT' | translate}} @@ -19,12 +19,12 @@ - {{result.entry.name}} - {{result.entry.modifiedByUser.displayName}} - {{result.entry.modifiedAt | date}} + {{result.entry.modifiedAt | date}}