diff --git a/packages/theme/styles/components.scss b/packages/theme/styles/components.scss index 33ae51c1ca..f6facb8263 100644 --- a/packages/theme/styles/components.scss +++ b/packages/theme/styles/components.scss @@ -745,7 +745,7 @@ .list-container .datetime-button, .list-container .datetime-button:hover { background-color: var(--theme-list-button-color) !important; - .icon { + .icon, .btn-icon { margin-right: .5rem; color: var(--theme-halfcontent-color) !important; } diff --git a/packages/theme/styles/popups.scss b/packages/theme/styles/popups.scss index 1a898bb0db..6cbc54a343 100644 --- a/packages/theme/styles/popups.scss +++ b/packages/theme/styles/popups.scss @@ -48,11 +48,12 @@ max-width: 40rem !important; } .header { - margin-bottom: .5rem; padding: .5rem; - border-bottom: 1px solid var(--theme-popup-divider); - - &.no-border { border-bottom-color: transparent; } + + &:not(.no-border) { + margin-bottom: .5rem; + border-bottom: 1px solid var(--theme-popup-divider); + } .clear-btn { display: flex; justify-content: center; @@ -345,11 +346,13 @@ align-items: center; flex-shrink: 0; justify-content: flex-start; + margin: 0 .5rem; padding: .25rem .5rem; min-width: 0; min-height: 2.25rem; text-align: left; color: var(--theme-caption-color); + border-radius: .25rem; outline: none; cursor: pointer; diff --git a/packages/ui/src/components/SelectPopup.svelte b/packages/ui/src/components/SelectPopup.svelte index ea0d6aae2a..41eb1dbebc 100644 --- a/packages/ui/src/components/SelectPopup.svelte +++ b/packages/ui/src/components/SelectPopup.svelte @@ -153,11 +153,7 @@ > {@const item = filteredObjects[itemId]} - {/each} + diff --git a/plugins/contact-resources/src/components/EmployeeFilter.svelte b/plugins/contact-resources/src/components/EmployeeFilter.svelte index 1441a2cbcf..ae1af5b121 100644 --- a/plugins/contact-resources/src/components/EmployeeFilter.svelte +++ b/plugins/contact-resources/src/components/EmployeeFilter.svelte @@ -17,11 +17,20 @@ import core, { Doc, FindResult, getObjectValue, Ref, SortingOrder, Space } from '@hcengineering/core' import { translate } from '@hcengineering/platform' import presentation, { getClient } from '@hcengineering/presentation' - import ui, { addNotification, deviceOptionsStore, Icon, IconCheck, Loading, resizeObserver } from '@hcengineering/ui' + import ui, { + addNotification, + deviceOptionsStore, + Icon, + IconCheck, + Loading, + resizeObserver, + EditWithIcon, + IconSearch + } from '@hcengineering/ui' import { Filter } from '@hcengineering/view' import { FILTER_DEBOUNCE_MS, FilterRemovedNotification, sortFilterValues } from '@hcengineering/view-resources' import view from '@hcengineering/view-resources/src/plugin' - import { createEventDispatcher, onMount } from 'svelte' + import { createEventDispatcher } from 'svelte' import EmployeePresenter from './EmployeePresenter.svelte' export let filter: Filter @@ -113,15 +122,6 @@ } let search: string = '' - let phTraslate: string = '' - let searchInput: HTMLInputElement - $: translate(presentation.string.Search, {}).then((res) => { - phTraslate = res - }) - - onMount(() => { - if (searchInput && !$deviceOptionsStore.isMobile) searchInput.focus() - }) const dispatch = createEventDispatcher() $: getValues(search) @@ -129,14 +129,16 @@
dispatch('changeContent')}>
- { getValues(search) }} - placeholder={phTraslate} />
@@ -146,24 +148,23 @@ {:else} {#each sortFilterValues(values, (v) => isSelected(v, filter.value)) as value} {/each} {/if}
+ diff --git a/plugins/recruit-resources/src/components/VacancyPresenter.svelte b/plugins/recruit-resources/src/components/VacancyPresenter.svelte index a867ec3e1d..e0e5efe816 100644 --- a/plugins/recruit-resources/src/components/VacancyPresenter.svelte +++ b/plugins/recruit-resources/src/components/VacancyPresenter.svelte @@ -27,12 +27,12 @@ {#if value} - +
{#if !inline}
{/if} - {value.name} + {value.name}
{/if} diff --git a/plugins/tags-resources/src/components/TagsFilter.svelte b/plugins/tags-resources/src/components/TagsFilter.svelte index a90146502d..4554b97fd1 100644 --- a/plugins/tags-resources/src/components/TagsFilter.svelte +++ b/plugins/tags-resources/src/components/TagsFilter.svelte @@ -14,13 +14,14 @@ -->
dispatch('changeContent')}> -
- {#each labels as l, i} -
+ + diff --git a/plugins/task-resources/src/components/state/StatePresenter.svelte b/plugins/task-resources/src/components/state/StatePresenter.svelte index 4a8f22fe67..8093cf898c 100644 --- a/plugins/task-resources/src/components/state/StatePresenter.svelte +++ b/plugins/task-resources/src/components/state/StatePresenter.svelte @@ -23,6 +23,8 @@ export let inline: boolean = false export let colorInherit: boolean = false export let accent: boolean = false + export let disabled: boolean = false + export let oneLine: boolean = false const dispatch = createEventDispatcher() @@ -46,7 +48,7 @@ {#if shouldShowAvatar}
{/if} - {value.name} + {value.name}
{/if} diff --git a/plugins/tracker-resources/src/components/milestones/MilestoneFilter.svelte b/plugins/tracker-resources/src/components/milestones/MilestoneFilter.svelte index f175652f81..76e5c2c254 100644 --- a/plugins/tracker-resources/src/components/milestones/MilestoneFilter.svelte +++ b/plugins/tracker-resources/src/components/milestones/MilestoneFilter.svelte @@ -14,13 +14,21 @@ -->
dispatch('changeContent')}>
- { getValues(search) }} - placeholder={phTraslate} />
@@ -135,41 +136,46 @@ {:else} {#each getStatuses() as group} {@const status = milestoneStatusAssets[group]} {@const items = getStatusItem(group, values)} {#if items.length > 0} -
- -
-
+ diff --git a/plugins/view-resources/src/components/filter/FilterTypePopup.svelte b/plugins/view-resources/src/components/filter/FilterTypePopup.svelte index 7a0aab2148..6256005c84 100644 --- a/plugins/view-resources/src/components/filter/FilterTypePopup.svelte +++ b/plugins/view-resources/src/components/filter/FilterTypePopup.svelte @@ -265,6 +265,7 @@
dispatch('changeContent')}> +