diff --git a/plugins/tracker-resources/src/components/issues/edit/SubIssues.svelte b/plugins/tracker-resources/src/components/issues/edit/SubIssues.svelte
index 87d633e428..6ab8d78e8a 100644
--- a/plugins/tracker-resources/src/components/issues/edit/SubIssues.svelte
+++ b/plugins/tracker-resources/src/components/issues/edit/SubIssues.svelte
@@ -16,10 +16,8 @@
import { Ref, SortingOrder, WithLookup } from '@hcengineering/core'
import { createQuery, getClient } from '@hcengineering/presentation'
import { calcRank, Issue, IssueStatus, Team } from '@hcengineering/tracker'
- import { Button, Spinner, ExpandCollapse, closeTooltip, IconAdd } from '@hcengineering/ui'
+ import { Button, Spinner, ExpandCollapse, closeTooltip, IconAdd, Chevron, Label } from '@hcengineering/ui'
import tracker from '../../../plugin'
- import Collapsed from '../../icons/Collapsed.svelte'
- import Expanded from '../../icons/Expanded.svelte'
import CreateSubIssue from './CreateSubIssue.svelte'
import SubIssueList from './SubIssueList.svelte'
@@ -62,16 +60,18 @@
{#if hasSubIssues}
{/if}
-
{#if currentTeam && issueStatuses}
{
- showPopup(TimeSpendReportPopup, {
- issueId: object._id,
- issueClass: object._class,
- space: object.space,
- assignee: object.assignee,
- defaultTimeReportDay
- })
+ showPopup(
+ TimeSpendReportPopup,
+ {
+ issueId: object._id,
+ issueClass: object._class,
+ space: object.space,
+ assignee: object.assignee,
+ defaultTimeReportDay
+ },
+ 'top'
+ )
}}
label={tracker.string.TimeSpendReportAdd}
/>
diff --git a/plugins/tracker-resources/src/components/issues/timereport/EstimationSubIssueList.svelte b/plugins/tracker-resources/src/components/issues/timereport/EstimationSubIssueList.svelte
index da202ffdfd..843b4348d9 100644
--- a/plugins/tracker-resources/src/components/issues/timereport/EstimationSubIssueList.svelte
+++ b/plugins/tracker-resources/src/components/issues/timereport/EstimationSubIssueList.svelte
@@ -17,7 +17,7 @@
import { Doc, Ref } from '@hcengineering/core'
import { UserBox } from '@hcengineering/presentation'
import { Issue, Team } from '@hcengineering/tracker'
- import { getEventPositionElement, ListView, showPopup } from '@hcengineering/ui'
+ import { getEventPositionElement, ListView, showPopup, deviceOptionsStore as deviceInfo } from '@hcengineering/ui'
import { ContextMenu, FixedColumn, ListSelectionProvider, SelectDirection } from '@hcengineering/view-resources'
import { getIssueId } from '../../../issues'
import tracker from '../../../plugin'
@@ -28,18 +28,19 @@
export let teams: Map[, Team>
function showContextMenu (ev: MouseEvent, object: Issue) {
- showPopup(ContextMenu, { object }, getEventPositionElement(ev))
+ showPopup(ContextMenu, { object }, $deviceInfo.isMobile ? 'top' : getEventPositionElement(ev))
}
const listProvider = new ListSelectionProvider((offset: 1 | -1 | 0, of?: Doc, dir?: SelectDirection) => {})
+ $: twoRows = $deviceInfo.twoRows
-
+
{@const issue = issues[item]}
{@const currentTeam = teams.get(issue.space)}
] showContextMenu(ev, issue)}
on:mouseover={() => {
listProvider.updateFocus(issue)
@@ -48,55 +49,32 @@
listProvider.updateFocus(issue)
}}
>
-
-
-
- {#if currentTeam}
- {getIssueId(currentTeam, issue)}
- {/if}
-
-
-
+
+
+ {#if currentTeam}
+ {getIssueId(currentTeam, issue)}
+ {/if}
+
+
{issue.title}
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
diff --git a/plugins/tracker-resources/src/components/issues/timereport/SubIssuesEstimations.svelte b/plugins/tracker-resources/src/components/issues/timereport/SubIssuesEstimations.svelte
index e8689c12e0..556dadb62e 100644
--- a/plugins/tracker-resources/src/components/issues/timereport/SubIssuesEstimations.svelte
+++ b/plugins/tracker-resources/src/components/issues/timereport/SubIssuesEstimations.svelte
@@ -16,7 +16,7 @@
import { Ref, SortingOrder, WithLookup } from '@hcengineering/core'
import { createQuery } from '@hcengineering/presentation'
import { Issue, IssueStatus, Team } from '@hcengineering/tracker'
- import { Scroller, Spinner } from '@hcengineering/ui'
+ import { Spinner } from '@hcengineering/ui'
import Expandable from '@hcengineering/ui/src/components/Expandable.svelte'
import tracker from '../../../plugin'
import EstimationSubIssueList from './EstimationSubIssueList.svelte'
@@ -38,15 +38,9 @@
{#if subIssues && issueStatuses}
{#if hasSubIssues}
-
-
- : {total}
-
-
-
-
-
-
+
+ : {total}
+
{/if}
{:else}
diff --git a/plugins/tracker-resources/src/components/issues/timereport/TimeReportDayDropdown.svelte b/plugins/tracker-resources/src/components/issues/timereport/TimeReportDayDropdown.svelte
index 1c97dec981..fccde324e3 100644
--- a/plugins/tracker-resources/src/components/issues/timereport/TimeReportDayDropdown.svelte
+++ b/plugins/tracker-resources/src/components/issues/timereport/TimeReportDayDropdown.svelte
@@ -15,11 +15,13 @@
+
+
+
+
+
+
+
+
+
(data.date = getTimeReportDate(detail))}
/>
(selectedTimeReportDay = getTimeReportDayType(detail))}
/>
-
-
+
diff --git a/plugins/tracker-resources/src/components/issues/timereport/TimeSpendReports.svelte b/plugins/tracker-resources/src/components/issues/timereport/TimeSpendReports.svelte
index cda62950e0..ae836d683a 100644
--- a/plugins/tracker-resources/src/components/issues/timereport/TimeSpendReports.svelte
+++ b/plugins/tracker-resources/src/components/issues/timereport/TimeSpendReports.svelte
@@ -16,7 +16,7 @@
import { DocumentQuery, Ref, SortingOrder } from '@hcengineering/core'
import { createQuery } from '@hcengineering/presentation'
import { Issue, Team, TimeSpendReport } from '@hcengineering/tracker'
- import { Expandable, floorFractionDigits, Label, Scroller, Spinner } from '@hcengineering/ui'
+ import { Expandable, floorFractionDigits, Label, Spinner } from '@hcengineering/ui'
import tracker from '../../../plugin'
import TimePresenter from './TimePresenter.svelte'
import TimeSpendReportsList from './TimeSpendReportsList.svelte'
@@ -42,21 +42,19 @@
{#if reports}
-
+
- :
- :
+ :
+ .
+ :
+
-
-
-
-
-
+
{:else}
-
+
{/if}
diff --git a/plugins/tracker-resources/src/components/issues/timereport/TimeSpendReportsList.svelte b/plugins/tracker-resources/src/components/issues/timereport/TimeSpendReportsList.svelte
index 713e3f9ca4..f99db970ce 100644
--- a/plugins/tracker-resources/src/components/issues/timereport/TimeSpendReportsList.svelte
+++ b/plugins/tracker-resources/src/components/issues/timereport/TimeSpendReportsList.svelte
@@ -18,6 +18,7 @@
import UserBox from '@hcengineering/presentation/src/components/UserBox.svelte'
import { Team, TimeReportDayType, TimeSpendReport } from '@hcengineering/tracker'
import { eventToHTMLElement, getEventPositionElement, ListView, showPopup } from '@hcengineering/ui'
+ import { deviceOptionsStore as deviceInfo } from '@hcengineering/ui'
import DatePresenter from '@hcengineering/ui/src/components/calendar/DatePresenter.svelte'
import { ContextMenu, FixedColumn, ListSelectionProvider, SelectDirection } from '@hcengineering/view-resources'
import { getIssueId } from '../../../issues'
@@ -51,18 +52,19 @@
assignee: value.employee,
defaultTimeReportDay
},
- eventToHTMLElement(event)
+ $deviceInfo.isMobile ? 'top' : eventToHTMLElement(event)
)
}
+ $: twoRows = $deviceInfo.twoRows
-
+
{@const report = reports[item]}
{@const currentTeam = teams.get(toTeamId(report.space))}
showContextMenu(ev, report)}
on:mouseover={() => {
listProvider.updateFocus(report)
@@ -72,62 +74,36 @@
}}
on:click={(evt) => editSpendReport(evt, report, currentTeam?.defaultTimeReportDay)}
>
-
-
-
- {#if currentTeam && report.$lookup?.attachedTo}
- {getIssueId(currentTeam, report.$lookup?.attachedTo)}
- {/if}
-
-
+
+
+ {#if currentTeam && report.$lookup?.attachedTo}
+ {getIssueId(currentTeam, report.$lookup?.attachedTo)}
+ {/if}
+
{#if report.$lookup?.attachedTo?.title}
-
+
{report.$lookup?.attachedTo?.title}
{/if}
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
diff --git a/plugins/view-resources/src/components/FixedColumn.svelte b/plugins/view-resources/src/components/FixedColumn.svelte
index 840d159b08..1654c50780 100644
--- a/plugins/view-resources/src/components/FixedColumn.svelte
+++ b/plugins/view-resources/src/components/FixedColumn.svelte
@@ -20,6 +20,7 @@
export let key: string
export let justify: string = ''
+ export let addClass: string | undefined = undefined
let prevKey = key
let element: HTMLDivElement | undefined
@@ -48,7 +49,7 @@