mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-15 12:55:59 +00:00
adjut maximum size and icons in dialog (#7201)
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
This commit is contained in:
parent
bcf7857477
commit
130eb2dec0
@ -322,10 +322,10 @@
|
|||||||
box-shadow: var(--theme-popup-shadow);
|
box-shadow: var(--theme-popup-shadow);
|
||||||
}
|
}
|
||||||
&.fullsize {
|
&.fullsize {
|
||||||
width: 100%;
|
width: calc(100vw - 3rem);
|
||||||
height: 100%;
|
height: calc(100vh - 4rem);
|
||||||
max-width: 100%;
|
max-width: calc(100vw - 3rem);
|
||||||
max-height: 100%;
|
max-height: calc(100vh - 4rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
|
@ -92,6 +92,7 @@
|
|||||||
"Submit": "Submit",
|
"Submit": "Submit",
|
||||||
"NextStep": "Next step",
|
"NextStep": "Next step",
|
||||||
"TypeHere": "Type here...",
|
"TypeHere": "Type here...",
|
||||||
|
"NormalSize": "Normal size",
|
||||||
"FullSize": "Full size",
|
"FullSize": "Full size",
|
||||||
"UseMaxWidth": "Max width",
|
"UseMaxWidth": "Max width",
|
||||||
"Sidebar": "Sidebar",
|
"Sidebar": "Sidebar",
|
||||||
|
@ -92,6 +92,7 @@
|
|||||||
"Submit": "Enviar",
|
"Submit": "Enviar",
|
||||||
"NextStep": "Siguiente paso",
|
"NextStep": "Siguiente paso",
|
||||||
"TypeHere": "Escribe aquí...",
|
"TypeHere": "Escribe aquí...",
|
||||||
|
"NormalSize": "Tamaño normal",
|
||||||
"FullSize": "Tamaño completo",
|
"FullSize": "Tamaño completo",
|
||||||
"UseMaxWidth": "Ancho máximo",
|
"UseMaxWidth": "Ancho máximo",
|
||||||
"Sidebar": "Barra lateral",
|
"Sidebar": "Barra lateral",
|
||||||
|
@ -92,6 +92,7 @@
|
|||||||
"Submit": "Soumettre",
|
"Submit": "Soumettre",
|
||||||
"NextStep": "Étape suivante",
|
"NextStep": "Étape suivante",
|
||||||
"TypeHere": "Tapez ici...",
|
"TypeHere": "Tapez ici...",
|
||||||
|
"NormalSize": "Taille normale",
|
||||||
"FullSize": "Taille réelle",
|
"FullSize": "Taille réelle",
|
||||||
"UseMaxWidth": "Largeur maximale",
|
"UseMaxWidth": "Largeur maximale",
|
||||||
"Sidebar": "Barre latérale",
|
"Sidebar": "Barre latérale",
|
||||||
|
@ -92,6 +92,7 @@
|
|||||||
"Submit": "Invia",
|
"Submit": "Invia",
|
||||||
"NextStep": "Prossimo passo",
|
"NextStep": "Prossimo passo",
|
||||||
"TypeHere": "Scrivi qui...",
|
"TypeHere": "Scrivi qui...",
|
||||||
|
"NormalSize": "Dimensioni normali",
|
||||||
"FullSize": "Dimensione intera",
|
"FullSize": "Dimensione intera",
|
||||||
"UseMaxWidth": "Larghezza massima",
|
"UseMaxWidth": "Larghezza massima",
|
||||||
"Sidebar": "Barra laterale",
|
"Sidebar": "Barra laterale",
|
||||||
|
@ -92,6 +92,7 @@
|
|||||||
"Submit": "Enviar",
|
"Submit": "Enviar",
|
||||||
"NextStep": "Seguinte passo",
|
"NextStep": "Seguinte passo",
|
||||||
"TypeHere": "Escreva aqui...",
|
"TypeHere": "Escreva aqui...",
|
||||||
|
"NormalSize": "Tamanho normal",
|
||||||
"FullSize": "Tamanho completo",
|
"FullSize": "Tamanho completo",
|
||||||
"UseMaxWidth": "Largura máxima",
|
"UseMaxWidth": "Largura máxima",
|
||||||
"Sidebar": "Barra lateral",
|
"Sidebar": "Barra lateral",
|
||||||
|
@ -92,6 +92,7 @@
|
|||||||
"Submit": "Отправить",
|
"Submit": "Отправить",
|
||||||
"NextStep": "Следующий шаг",
|
"NextStep": "Следующий шаг",
|
||||||
"TypeHere": "Вводите здесь...",
|
"TypeHere": "Вводите здесь...",
|
||||||
|
"NormalSize": "Обычный размер",
|
||||||
"FullSize": "Полный размер",
|
"FullSize": "Полный размер",
|
||||||
"UseMaxWidth": "Максимальная ширина",
|
"UseMaxWidth": "Максимальная ширина",
|
||||||
"Sidebar": "Боковая панель",
|
"Sidebar": "Боковая панель",
|
||||||
|
@ -92,6 +92,7 @@
|
|||||||
"Submit": "提交",
|
"Submit": "提交",
|
||||||
"NextStep": "下一步",
|
"NextStep": "下一步",
|
||||||
"TypeHere": "在此输入...",
|
"TypeHere": "在此输入...",
|
||||||
|
"NormalSize": "正常尺寸",
|
||||||
"FullSize": "全尺寸",
|
"FullSize": "全尺寸",
|
||||||
"UseMaxWidth": "使用最大宽度",
|
"UseMaxWidth": "使用最大宽度",
|
||||||
"Sidebar": "侧边栏",
|
"Sidebar": "侧边栏",
|
||||||
|
@ -20,13 +20,14 @@
|
|||||||
Button,
|
Button,
|
||||||
Label,
|
Label,
|
||||||
IconClose,
|
IconClose,
|
||||||
IconScale,
|
IconMaximize,
|
||||||
IconScaleFull,
|
IconMinimize,
|
||||||
resizeObserver,
|
resizeObserver,
|
||||||
tooltip,
|
tooltip,
|
||||||
deviceOptionsStore as deviceInfo,
|
deviceOptionsStore as deviceInfo,
|
||||||
checkAdaptiveMatching
|
checkAdaptiveMatching
|
||||||
} from '..'
|
} from '..'
|
||||||
|
import ui from '../plugin'
|
||||||
|
|
||||||
export let label: IntlString | undefined = undefined
|
export let label: IntlString | undefined = undefined
|
||||||
export let isFullSize: boolean = false
|
export let isFullSize: boolean = false
|
||||||
@ -69,11 +70,12 @@
|
|||||||
{#if isFullSize && !needFullSize}
|
{#if isFullSize && !needFullSize}
|
||||||
<Button
|
<Button
|
||||||
focusIndex={100010}
|
focusIndex={100010}
|
||||||
icon={fullSize ? IconScale : IconScaleFull}
|
icon={fullSize ? IconMinimize : IconMaximize}
|
||||||
kind={'ghost'}
|
kind={'ghost'}
|
||||||
size={'medium'}
|
size={'medium'}
|
||||||
selected={fullSize}
|
selected={fullSize}
|
||||||
id={'btnDialogFullScreen'}
|
id={'btnDialogFullScreen'}
|
||||||
|
showTooltip={{ label: fullSize ? ui.string.NormalSize : ui.string.FullSize }}
|
||||||
on:click={() => (toggleFullSize = !toggleFullSize)}
|
on:click={() => (toggleFullSize = !toggleFullSize)}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -19,5 +19,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svg class="svg-{size}" {fill} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
<svg class="svg-{size}" {fill} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
||||||
<path d="M7 3V2H2V7H3V3.707L12.293 13H9V14H14V9H13V12.293L3.707 3H7Z" />
|
<g transform="translate(16 0) scale(-1 1)">
|
||||||
|
<path d="M7 3V2H2V7H3V3.707L12.293 13H9V14H14V9H13V12.293L3.707 3H7Z" />
|
||||||
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -119,6 +119,7 @@ export const uis = plugin(uiId, {
|
|||||||
NextStep: '' as IntlString,
|
NextStep: '' as IntlString,
|
||||||
TypeHere: '' as IntlString,
|
TypeHere: '' as IntlString,
|
||||||
|
|
||||||
|
NormalSize: '' as IntlString,
|
||||||
FullSize: '' as IntlString,
|
FullSize: '' as IntlString,
|
||||||
UseMaxWidth: '' as IntlString,
|
UseMaxWidth: '' as IntlString,
|
||||||
Sidebar: '' as IntlString,
|
Sidebar: '' as IntlString,
|
||||||
|
Loading…
Reference in New Issue
Block a user