From 5a8b7e2bf736006a23dc27c5d5713b12a0ee8d5c Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Fri, 3 Nov 2023 15:33:48 +0700 Subject: [PATCH] UBER-1157: Some dependant fixes Signed-off-by: Andrey Sobolev --- packages/theme/styles/_layouts.scss | 2 +- packages/ui/src/resize.ts | 8 +----- plugins/calendar/src/utils.ts | 11 ++++---- .../src/components/Schedule.svelte | 4 +-- .../src/components/Inbox.svelte | 4 +-- .../src/components/Settings.svelte | 6 ++--- .../src/components/WorkspaceSettings.svelte | 4 +-- plugins/view-resources/src/utils.ts | 14 ++++++++++ .../src/components/Workbench.svelte | 26 +++++++++---------- .../src/components/navigator/SpacesNav.svelte | 10 +++++-- .../components/navigator/StarredNav.svelte | 10 +++++-- plugins/workbench-resources/src/utils.ts | 16 ++---------- 12 files changed, 62 insertions(+), 53 deletions(-) diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index 3a51caed7a..c8114b1914 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -610,7 +610,7 @@ input.search { } /* --------- */ -.no-word-wrap { word-wrap: none; } +.no-word-wrap { word-wrap: none; text-wrap: nowrap; } .relative { position: relative; } .absolute { position: absolute; } .abs-lt-content { diff --git a/packages/ui/src/resize.ts b/packages/ui/src/resize.ts index 9e218a9bad..00d00b6c76 100644 --- a/packages/ui/src/resize.ts +++ b/packages/ui/src/resize.ts @@ -11,8 +11,8 @@ // See the License for the specific language governing permissions and import { writable } from 'svelte/store' +import type { DefSeparators, SeparatedItem } from './types' import { DelayedCaller } from './utils' -import type { SeparatedItem, DefSeparators } from './types' // limitations under the License. let observer: ResizeObserver @@ -163,10 +163,4 @@ export const settingsSeparators: DefSeparators = [ null ] -export const timeSeparators: DefSeparators = [ - { minSize: 12.5, size: 17.5, maxSize: 22.5, float: 'navigator' }, - { minSize: 25, size: 35, maxSize: 45 }, - null -] - export const separatorsStore = writable([]) diff --git a/plugins/calendar/src/utils.ts b/plugins/calendar/src/utils.ts index bfc233d7ef..c42b2702a8 100644 --- a/plugins/calendar/src/utils.ts +++ b/plugins/calendar/src/utils.ts @@ -57,7 +57,7 @@ function generateDailyValues ( while (true) { if (bySetPos == null || bySetPos.includes(getSetPos(currentDate))) { const res = currentDate.getTime() - if (res > from) { + if (res > from && res < to) { values.push(res) } i++ @@ -92,7 +92,7 @@ function generateWeeklyValues ( while (date < end) { if ((byDay == null || matchesByDay(date, byDay)) && (bySetPos == null || bySetPos.includes(getSetPos(date)))) { const res = date.getTime() - if (res > from) { + if (res > from && res < to) { values.push(res) } i++ @@ -172,7 +172,7 @@ function generateMonthlyValues ( (bySetPos == null || bySetPos.includes(getSetPos(currentDate))) ) { const res = currentDate.getTime() - if (res > from) { + if (res > from && res < to) { values.push(res) } i++ @@ -212,7 +212,7 @@ function generateYearlyValues ( (bySetPos == null || bySetPos.includes(getSetPos(currentDate))) ) { const res = currentDate.getTime() - if (res > from) { + if (res > from && res < to) { values.push(res) } i++ @@ -316,7 +316,8 @@ export function getAllEvents (events: Event[], from: Timestamp, to: Timestamp): } } for (const rec of recur) { - recurData.push(...getReccuringEventInstances(rec, instancesMap.get(rec.eventId) ?? [], from, to)) + const recEvents = getReccuringEventInstances(rec, instancesMap.get(rec.eventId) ?? [], from, to) + recurData.push(...recEvents) } const res = [ ...base, diff --git a/plugins/hr-resources/src/components/Schedule.svelte b/plugins/hr-resources/src/components/Schedule.svelte index e0c3be4308..8ae7a7a7aa 100644 --- a/plugins/hr-resources/src/components/Schedule.svelte +++ b/plugins/hr-resources/src/components/Schedule.svelte @@ -39,7 +39,7 @@ import ScheduleView from './ScheduleView.svelte' import Sidebar from './sidebar/Sidebar.svelte' - export let visibileNav: boolean = true + export let visibleNav: boolean = true export let navFloat: boolean = false export let appsDirection: 'vertical' | 'horizontal' = 'horizontal' @@ -127,7 +127,7 @@
- {#if visibileNav} + {#if visibleNav}
- {#if visibileNav} + {#if visibleNav}