mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 21:45:01 +02:00
Update Notifications layout (#2500)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<script lang="ts">
|
||||
import { afterUpdate, createEventDispatcher } from 'svelte'
|
||||
|
||||
import ui, { Label, EditWithIcon, IconSearch } from '@hcengineering/ui'
|
||||
import ui, { Label, EditWithIcon, IconSearch, deviceOptionsStore } from '@hcengineering/ui'
|
||||
import SpaceInfo from './SpaceInfo.svelte'
|
||||
|
||||
import type { Ref, Class, Space, DocumentQuery } from '@hcengineering/core'
|
||||
@@ -40,7 +40,12 @@
|
||||
<div class="antiPopup antiPopup-withHeader">
|
||||
<div class="ap-space" />
|
||||
<div class="ap-header">
|
||||
<EditWithIcon icon={IconSearch} bind:value={search} placeholder={ui.string.SearchDots} focus />
|
||||
<EditWithIcon
|
||||
icon={IconSearch}
|
||||
bind:value={search}
|
||||
placeholder={ui.string.SearchDots}
|
||||
focus={!$deviceOptionsStore.isMobile}
|
||||
/>
|
||||
<div class="ap-caption"><Label label={ui.string.Suggested} /></div>
|
||||
</div>
|
||||
<div class="ap-space" />
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
|
||||
const space = typeof query.space === 'string' ? query.space : tracker.team.DefaultTeam
|
||||
const showCreateDialog = async () => {
|
||||
showPopup(NewProject, { space, targetElement: null }, null)
|
||||
showPopup(NewProject, { space, targetElement: null }, 'top')
|
||||
}
|
||||
|
||||
const handleViewModeChanged = (newMode: ProjectsViewMode) => {
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
const space = typeof query.space === 'string' ? query.space : tracker.team.DefaultTeam
|
||||
const showCreateDialog = async () => {
|
||||
showPopup(NewSprint, { space, targetElement: null }, null)
|
||||
showPopup(NewSprint, { space, targetElement: null }, 'top')
|
||||
}
|
||||
|
||||
const handleViewModeChanged = (newMode: SprintViewMode) => {
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
$: if (docWidth > 900 && docSize) docSize = false
|
||||
|
||||
const showCreateDialog = async () => {
|
||||
showPopup(CreateIssueTemplate, { targetElement: null }, null)
|
||||
showPopup(CreateIssueTemplate, { targetElement: null }, 'top')
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user