diff --git a/packages/presentation/src/components/breadcrumbs/BreadcrumbsElement.svelte b/packages/presentation/src/components/breadcrumbs/BreadcrumbsElement.svelte index 1572c94b73..9248be6047 100644 --- a/packages/presentation/src/components/breadcrumbs/BreadcrumbsElement.svelte +++ b/packages/presentation/src/components/breadcrumbs/BreadcrumbsElement.svelte @@ -13,6 +13,7 @@ // limitations under the License. --> -
+
{ + clientWidth = evt.clientWidth + }} +> {#if $$slots.default} {:else} diff --git a/plugins/hr-resources/src/components/schedule/MonthView.svelte b/plugins/hr-resources/src/components/schedule/MonthView.svelte index fd54b872f4..0bb501574a 100644 --- a/plugins/hr-resources/src/components/schedule/MonthView.svelte +++ b/plugins/hr-resources/src/components/schedule/MonthView.svelte @@ -29,7 +29,8 @@ Scroller, showPopup, tooltip, - deviceOptionsStore as deviceInfo + deviceOptionsStore as deviceInfo, + resizeObserver } from '@hcengineering/ui' import hr from '../../plugin' import { getHolidayDatesForEmployee, getRequests, isHoliday } from '../../utils' @@ -251,10 +252,20 @@ {@const dep = departmentById.get(department)} -
+
{ + containerWidth = evt.clientWidth + }} + class="timeline" + > {#key [containerWidthRem, columnWidthRem, headerWidthRem]} -
+
{ + headerWidth = evt.clientWidth + }} + class="timeline-header timeline-resource-header" + >
@@ -268,7 +279,12 @@
-
+
{ + headerWidth = evt.clientWidth + }} + class="timeline-resource-content" + > {#each rows as row}
diff --git a/plugins/tracker-resources/src/components/issues/edit/QueryIssuesList.svelte b/plugins/tracker-resources/src/components/issues/edit/QueryIssuesList.svelte index bdec957878..7bec36f1c4 100644 --- a/plugins/tracker-resources/src/components/issues/edit/QueryIssuesList.svelte +++ b/plugins/tracker-resources/src/components/issues/edit/QueryIssuesList.svelte @@ -16,7 +16,7 @@ import { Class, Doc, DocumentQuery, Ref } from '@hcengineering/core' import { createQuery, getClient } from '@hcengineering/presentation' import { Issue } from '@hcengineering/tracker' - import { Button, Chevron, ExpandCollapse, IconAdd, closeTooltip, showPopup } from '@hcengineering/ui' + import { Button, Chevron, ExpandCollapse, IconAdd, closeTooltip, resizeObserver, showPopup } from '@hcengineering/ui' import view, { ViewOptions, Viewlet, ViewletPreference } from '@hcengineering/view' import { ViewletsSettingButton } from '@hcengineering/view-resources' import { afterUpdate } from 'svelte' @@ -157,7 +157,13 @@ {#if hasSubIssues && viewOptions && viewlet} {#if !isCollapsed} -
+
{ + listWidth = evt.clientWidth + }} + > import { Class, Doc, DocumentQuery, FindOptions, Ref, Space } from '@hcengineering/core' import { IntlString } from '@hcengineering/platform' - import { AnyComponent, Scroller } from '@hcengineering/ui' - import { BuildModelKey, Viewlet, ViewOptions } from '@hcengineering/view' - import { onMount } from 'svelte' import { ActionContext } from '@hcengineering/presentation' + import { AnyComponent, Scroller, resizeObserver } from '@hcengineering/ui' + import { BuildModelKey, ViewOptions, Viewlet } from '@hcengineering/view' + import { onMount } from 'svelte' import { ListSelectionProvider, SelectDirection, focusStore } from '../..' import List from './List.svelte' @@ -41,7 +41,7 @@ let list: List let scroll: Scroller let divScroll: HTMLDivElement - let listWidth: number + let listWidth: number = 0 const listProvider = new ListSelectionProvider( (offset: 1 | -1 | 0, of?: Doc, dir?: SelectDirection, noScroll?: boolean) => { @@ -63,7 +63,12 @@ mode: 'browser' }} /> -
+
{ + listWidth = evt.clientWidth + }} + class="w-full h-full py-4 clear-mins" +>