From 5e4e02235ada3f707346a00f5b38894d13bce529 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Jan 2023 09:57:41 +0900 Subject: [PATCH] :art: --- packages/frontend/src/ui/deck.vue | 56 +++++++++++++------------------ 1 file changed, 24 insertions(+), 32 deletions(-) diff --git a/packages/frontend/src/ui/deck.vue b/packages/frontend/src/ui/deck.vue index d7f4c00269..143dcdad64 100644 --- a/packages/frontend/src/ui/deck.vue +++ b/packages/frontend/src/ui/deck.vue @@ -48,10 +48,10 @@
- - - - + + + +
@@ -351,33 +351,28 @@ async function deleteProfile() { z-index: 1000; bottom: 0; left: 0; - padding: 16px; - display: flex; + padding: 12px 12px max(12px, env(safe-area-inset-bottom, 0px)) 12px; + display: grid; + grid-template-columns: 1fr 1fr 1fr 1fr; + grid-gap: 8px; width: 100%; box-sizing: border-box; + -webkit-backdrop-filter: var(--blur, blur(32px)); + backdrop-filter: var(--blur, blur(32px)); + background-color: var(--header); + border-top: solid 0.5px var(--divider); > .button { position: relative; - flex: 1; padding: 0; + aspect-ratio: 1; + width: 100%; + max-width: 60px; margin: auto; - height: 64px; - border-radius: 8px; + border-radius: 100%; background: var(--panel); color: var(--fg); - &:not(:last-child) { - margin-right: 12px; - } - - @media (max-width: 400px) { - height: 60px; - - &:not(:last-child) { - margin-right: 8px; - } - } - &:hover { background: var(--X2); } @@ -391,25 +386,22 @@ async function deleteProfile() { animation: blink 1s infinite; } - &:first-child { - margin-left: 0; - } - - &:last-child { - margin-right: 0; - } - - > * { - font-size: 20px; + > .icon { + font-size: 18px; } &:disabled { cursor: default; - > * { + > .icon { opacity: 0.5; } } + + &.post { + background: linear-gradient(90deg, var(--buttonGradateA), var(--buttonGradateB)); + color: var(--fgOnAccent); + } } }