Fix layout
All checks were successful
Publish Docker image / Push Docker image to Docker Hub (push) Successful in 2m39s
All checks were successful
Publish Docker image / Push Docker image to Docker Hub (push) Successful in 2m39s
This commit is contained in:
parent
6e8a235629
commit
f00ca9ba7c
@ -370,7 +370,7 @@ export const Game = () => {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="game-page">
|
||||
<div className={`game-page ${phase === "composing" ? "with-otamatone" : ""}`}>
|
||||
<div className="background-overlay">
|
||||
<div className="rotating-gradient"></div>
|
||||
</div>
|
||||
|
@ -9,17 +9,19 @@
|
||||
right: 0
|
||||
bottom: 0
|
||||
padding: 20px 30px 30px 30px
|
||||
background: rgba(20, 20, 30, 0.75)
|
||||
background: rgba(20, 20, 30, 0.85)
|
||||
backdrop-filter: blur(15px)
|
||||
border-radius: 30px 30px 0 0
|
||||
margin: 0
|
||||
z-index: 10
|
||||
z-index: 100
|
||||
box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3), 0 -2px 10px rgba(255, 255, 255, 0.1)
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.3)
|
||||
border-left: 1px solid rgba(255, 255, 255, 0.2)
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.2)
|
||||
transition: transform 0.3s ease
|
||||
width: 100%
|
||||
height: 100px
|
||||
animation: slide-in-bottom 0.4s ease-out
|
||||
|
||||
.otamatone
|
||||
display: flex
|
||||
@ -171,6 +173,14 @@
|
||||
0%
|
||||
transform: translateY(100%)
|
||||
opacity: 0
|
||||
100%
|
||||
transform: translateY(0)
|
||||
opacity: 1
|
||||
|
||||
@keyframes slide-in-bottom
|
||||
0%
|
||||
transform: translateY(100%)
|
||||
opacity: 0
|
||||
100%
|
||||
transform: translateY(0)
|
||||
opacity: 1
|
@ -10,6 +10,14 @@
|
||||
position: relative
|
||||
animation: page-fade-in 1s ease-in-out
|
||||
overflow: hidden
|
||||
|
||||
&.with-otamatone
|
||||
.game-layout
|
||||
height: calc(100vh - 280px)
|
||||
padding-bottom: 20px
|
||||
|
||||
.chat-panel
|
||||
max-height: calc(100vh - 300px)
|
||||
|
||||
.game-layout
|
||||
display: flex
|
||||
@ -20,6 +28,7 @@
|
||||
padding: 0 20px
|
||||
z-index: 2
|
||||
position: relative
|
||||
transition: height 0.3s ease
|
||||
|
||||
.main-content
|
||||
flex: 1
|
||||
@ -28,13 +37,14 @@
|
||||
display: flex
|
||||
flex-direction: column
|
||||
align-items: center
|
||||
min-width: 0 // Fix for flex child overflow
|
||||
min-width: 0
|
||||
margin-right: 20px
|
||||
|
||||
// Redesigned chat panel
|
||||
.chat-panel
|
||||
width: 280px
|
||||
height: 100%
|
||||
max-height: calc(100vh - 200px)
|
||||
background: rgba(255, 255, 255, 0.08)
|
||||
backdrop-filter: blur(10px)
|
||||
border-radius: 20px
|
||||
@ -43,7 +53,7 @@
|
||||
display: flex
|
||||
flex-direction: column
|
||||
overflow: hidden
|
||||
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
||||
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), max-height 0.3s ease
|
||||
animation: slide-in-right 0.5s ease-out
|
||||
|
||||
.chat-header
|
||||
|
Loading…
x
Reference in New Issue
Block a user