Playの編集画面の保存ボタン等をstickyにする など (#14429)
* flash: sticky buttons * sticky save buttons * fix * add spacer * fix design * Update CHANGELOG.md * revert experimental background * add background * Update CHANGELOG.md --------- Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									3674e9b1cb
								
							
						
					
					
						commit
						aef15069a2
					
				|  | @ -13,6 +13,7 @@ | |||
| - Enhance: アイコンデコレーション管理画面にプレビューを追加 | ||||
| - Enhance: コントロールパネル内のファイル一覧でセンシティブなファイルを区別しやすく | ||||
| - Enhance: ScratchpadにUIインスペクターを追加 | ||||
| - Enhance: Play編集画面の項目の並びを少しリデザイン | ||||
| - Fix: サーバーメトリクスが2つ以上あるとリロード直後の表示がおかしくなる問題を修正 | ||||
| - Fix: コントロールパネル内のAp requests内のチャートの表示がおかしかった問題を修正 | ||||
| - Fix: 月の違う同じ日はセパレータが表示されないのを修正 | ||||
|  |  | |||
|  | @ -11,6 +11,12 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 			<MkInput v-model="title"> | ||||
| 				<template #label>{{ i18n.ts._play.title }}</template> | ||||
| 			</MkInput> | ||||
| 			<MkSelect v-model="visibility"> | ||||
| 				<template #label>{{ i18n.ts.visibility }}</template> | ||||
| 				<template #caption>{{ i18n.ts._play.visibilityDescription }}</template> | ||||
| 				<option :key="'public'" :value="'public'">{{ i18n.ts.public }}</option> | ||||
| 				<option :key="'private'" :value="'private'">{{ i18n.ts.private }}</option> | ||||
| 			</MkSelect> | ||||
| 			<MkTextarea v-model="summary" :mfmAutocomplete="true" :mfmPreview="true"> | ||||
| 				<template #label>{{ i18n.ts._play.summary }}</template> | ||||
| 			</MkTextarea> | ||||
|  | @ -18,19 +24,19 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 			<MkCodeEditor v-model="script" lang="is"> | ||||
| 				<template #label>{{ i18n.ts._play.script }}</template> | ||||
| 			</MkCodeEditor> | ||||
| 			<MkSelect v-model="visibility"> | ||||
| 				<template #label>{{ i18n.ts.visibility }}</template> | ||||
| 				<template #caption>{{ i18n.ts._play.visibilityDescription }}</template> | ||||
| 				<option :key="'public'" :value="'public'">{{ i18n.ts.public }}</option> | ||||
| 				<option :key="'private'" :value="'private'">{{ i18n.ts.private }}</option> | ||||
| 			</MkSelect> | ||||
| 			<div class="_buttons"> | ||||
| 				<MkButton primary @click="save"><i class="ti ti-check"></i> {{ i18n.ts.save }}</MkButton> | ||||
| 				<MkButton @click="show"><i class="ti ti-eye"></i> {{ i18n.ts.show }}</MkButton> | ||||
| 				<MkButton v-if="flash" danger @click="del"><i class="ti ti-trash"></i> {{ i18n.ts.delete }}</MkButton> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	</MkSpacer> | ||||
| 	<template #footer> | ||||
| 		<div :class="$style.footer"> | ||||
| 			<MkSpacer> | ||||
| 				<div class="_buttons"> | ||||
| 					<MkButton primary @click="save"><i class="ti ti-check"></i> {{ i18n.ts.save }}</MkButton> | ||||
| 					<MkButton @click="show"><i class="ti ti-eye"></i> {{ i18n.ts.show }}</MkButton> | ||||
| 					<MkButton v-if="flash" danger @click="del"><i class="ti ti-trash"></i> {{ i18n.ts.delete }}</MkButton> | ||||
| 				</div> | ||||
| 			</MkSpacer> | ||||
| 		</div> | ||||
| 	</template> | ||||
| </MkStickyContainer> | ||||
| </template> | ||||
| 
 | ||||
|  | @ -459,3 +465,10 @@ definePageMetadata(() => ({ | |||
| 	title: flash.value ? `${i18n.ts._play.edit}: ${flash.value.title}` : i18n.ts._play.new, | ||||
| })); | ||||
| </script> | ||||
| <style lang="scss" module> | ||||
| .footer { | ||||
| 	backdrop-filter: var(--blur, blur(15px)); | ||||
| 	background: var(--acrylicBg); | ||||
| 	border-top: solid .5px var(--divider); | ||||
| } | ||||
| </style> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue