From 92eb972c7c4f315c923309c602a0d3a4ebbd19ff Mon Sep 17 00:00:00 2001 From: Mitan Omar Date: Thu, 14 Nov 2024 15:14:43 +0100 Subject: [PATCH 1/3] fix: view link column in small screen in search route --- app/styles/_responsive.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/app/styles/_responsive.scss b/app/styles/_responsive.scss index 1c72971a..366fa951 100644 --- a/app/styles/_responsive.scss +++ b/app/styles/_responsive.scss @@ -36,7 +36,6 @@ table.document-list > thead > tr > th:nth-child(4), table.document-list > thead > tr > th:nth-child(5), - table.document-list > tbody > tr > td:nth-child(4), table.document-list > tbody > tr > td:nth-child(5) { display: none; } From 356446e0d45074de8b9b683d2087935eb3452942 Mon Sep 17 00:00:00 2001 From: Mitan Omar Date: Thu, 14 Nov 2024 16:03:06 +0100 Subject: [PATCH 2/3] refactor: hide column by class instade of index number --- addon/components/document-list-item.hbs | 16 ++++++++-------- addon/components/document-list.hbs | 2 +- app/styles/_responsive.scss | 4 +--- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/addon/components/document-list-item.hbs b/addon/components/document-list-item.hbs index c1d21281..534b75a6 100644 --- a/addon/components/document-list-item.hbs +++ b/addon/components/document-list-item.hbs @@ -10,7 +10,7 @@ > {{#each-in @columns as |column|}} {{#if (eq column "type")}} - + {{else if (eq column "title")}} - + {{@document.title}}
{{else if (eq column "marks")}} - + {{#each @document.marks as |mark|}}
@@ -44,7 +44,7 @@ {{/each}} {{else if (eq column "link")}} - + {{#let (await (this.config.documentListLinkTo @document)) as |linkConfig| @@ -65,7 +65,7 @@ {{/let}} {{else if (eq column "date")}} - + {{format-date @document.date month="2-digit" @@ -74,7 +74,7 @@ }} {{else if (eq column "modifiedAt")}} - + {{format-date @document.latestFile.value.createdAt month="2-digit" @@ -85,11 +85,11 @@ }} {{else if (eq column "createdByUser")}} - + {{await (resolve-user @document.createdByUser)}} {{else if (eq column "createdByGroup")}} - + {{await (resolve-group @document.createdByGroup)}} {{/if}} diff --git a/addon/components/document-list.hbs b/addon/components/document-list.hbs index 4b857430..ee562bae 100644 --- a/addon/components/document-list.hbs +++ b/addon/components/document-list.hbs @@ -5,7 +5,7 @@ {{#each-in @columns as |key settings|}} - + {{#if settings.labelHidden}}