Compare commits

...

10 Commits

Author SHA1 Message Date
かっこかり 32bf37c164
Merge c8421194b8 into 0e4b6d1dad 2024-09-15 18:46:34 +09:00
かっこかり c8421194b8
Merge branch 'develop' into fix-14452 2024-09-15 17:13:53 +09:00
かっこかり 1d54c97781
Merge branch 'develop' into fix-14452 2024-08-31 12:59:51 +09:00
かっこかり 9db8a64665
Merge branch 'develop' into fix-14452 2024-08-24 19:11:41 +09:00
kakkokari-gtyih d9150053f4 🎨 2024-08-22 13:48:10 +09:00
kakkokari-gtyih e4788ac014 🎨 2024-08-22 13:47:51 +09:00
kakkokari-gtyih 50693b8be7 rename 2024-08-22 13:45:10 +09:00
kakkokari-gtyih f9945d1abf botアカウントのメッセージを左上に 2024-08-22 13:44:13 +09:00
kakkokari-gtyih faefe39a4b Update Changelog 2024-08-22 13:36:37 +09:00
kakkokari-gtyih 74ecc4ec42 fix(frontend): 二段階認証の設定ダイアログはbotWarnよりも上に表示するように 2024-08-22 13:35:19 +09:00
4 changed files with 15 additions and 30 deletions

View File

@ -11,6 +11,7 @@
- Enhance: コントロールパネル内のファイル一覧でセンシティブなファイルを区別しやすく
- Fix: サーバーメトリクスが2つ以上あるとリロード直後の表示がおかしくなる問題を修正
- Fix: 月の違う同じ日はセパレータが表示されないのを修正
- Fix: アカウントがbotになっているときに二段階認証設定ダイアログの上にbotアカウントの注意書きが表示される問題を修正
### Server
- Fix: アンテナの書き込み時にキーワードが与えられなかった場合のエラーをApiErrorとして投げるように

View File

@ -68,7 +68,7 @@ const props = withDefaults(defineProps<{
anchor?: { x: string; y: string; };
src?: HTMLElement | null;
preferType?: ModalTypes | 'auto';
zPriority?: 'low' | 'middle' | 'high';
zPriority?: os.ZPriority;
noOverlap?: boolean;
transparentBg?: boolean;
hasInteractionWithOtherFocusTrappedEls?: boolean;

View File

@ -145,7 +145,10 @@ const zIndexes = {
middle: 2000000,
high: 3000000,
};
export function claimZIndex(priority: keyof typeof zIndexes = 'low'): number {
export type ZPriority = keyof typeof zIndexes;
export function claimZIndex(priority: ZPriority = 'low'): number {
zIndexes[priority] += 100;
return zIndexes[priority];
}

View File

@ -39,9 +39,13 @@ SPDX-License-Identifier: AGPL-3.0-only
<div v-if="pendingApiRequestsCount > 0" id="wait"></div>
<div v-if="dev" id="devTicker"><span>DEV BUILD</span></div>
<div id="envTicker">
<div>
<div v-if="$i && $i.isBot">{{ i18n.ts.loggedInAsBot }}</div>
<div v-if="dev">DEV BUILD</div>
</div>
</div>
<div v-if="$i && $i.isBot" id="botWarn"><span>{{ i18n.ts.loggedInAsBot }}</span></div>
</template>
<script lang="ts" setup>
@ -241,30 +245,7 @@ if ($i) {
}
}
#botWarn {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
width: 100%;
height: max-content;
text-align: center;
z-index: 2147483647;
color: #ff0;
background: rgba(0, 0, 0, 0.5);
padding: 4px 7px;
font-size: 14px;
pointer-events: none;
user-select: none;
> span {
animation: dev-ticker-blink 2s infinite;
}
}
#devTicker {
#envTicker {
position: fixed;
top: 0;
left: 0;
@ -272,11 +253,11 @@ if ($i) {
color: #ff0;
background: rgba(0, 0, 0, 0.5);
padding: 4px 5px;
font-size: 14px;
border-bottom-right-radius: 6px;
pointer-events: none;
user-select: none;
> span {
> div {
animation: dev-ticker-blink 2s infinite;
}
}