This commit is contained in:
Xin Wang
2026-05-28 15:03:46 +08:00

View File

@@ -63,16 +63,23 @@ body {
}
.camera-drawer {
flex: 0 0 var(--camera-drawer-width, min(34%, 430px));
max-width: 0;
min-width: 0;
min-height: 0;
overflow: hidden;
pointer-events: none;
opacity: 0;
transform: translateX(-12px);
transition: opacity 180ms ease, transform 220ms ease;
transform: translateX(-18px);
transition:
max-width 340ms cubic-bezier(0.22, 1, 0.36, 1),
opacity 180ms ease,
transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
will-change: max-width, opacity, transform;
}
.camera-drawer.is-open {
max-width: var(--camera-drawer-max-width, 430px);
pointer-events: auto;
transform: translateX(0);
opacity: 1;
@@ -112,8 +119,8 @@ body {
.camera-drawer__header h2 {
margin: 0;
font-size: 18px;
font-weight: 700;
font-size: 16px;
font-weight: 650;
}
.camera-drawer__state {
@@ -203,9 +210,9 @@ body {
.camera-drawer__question {
margin: 0;
color: var(--text);
font-size: 20px;
font-weight: 700;
line-height: 1.42;
font-size: 17px;
font-weight: 600;
line-height: 1.5;
}
.camera-drawer__button {
@@ -241,15 +248,14 @@ body {
}
.conversation {
display: grid;
grid-template-columns: 0 minmax(0, 1fr);
display: flex;
min-height: 0;
overflow: hidden;
transition: grid-template-columns 220ms ease;
}
.conversation.has-camera {
grid-template-columns: minmax(280px, min(34%, 430px)) minmax(0, 1fr);
--camera-drawer-width: min(34%, 430px);
--camera-drawer-max-width: 430px;
}
/* Header ---------------------------------------------------------------- */
@@ -947,7 +953,8 @@ body {
@media (max-width: 820px) {
.conversation.has-camera {
grid-template-columns: minmax(260px, 46%) minmax(0, 1fr);
--camera-drawer-width: 46%;
--camera-drawer-max-width: 420px;
}
.app__body {
@@ -978,7 +985,8 @@ body {
}
.conversation.has-camera {
grid-template-columns: minmax(220px, 58%) minmax(120px, 1fr);
--camera-drawer-width: 58%;
--camera-drawer-max-width: calc(100vw - 120px);
}
.camera-drawer__panel {
@@ -991,7 +999,7 @@ body {
}
.camera-drawer__question {
font-size: 18px;
font-size: 16px;
}
.app__header {