Sync with engine v5
This commit is contained in:
@@ -136,7 +136,8 @@ body {
|
||||
|
||||
.camera-drawer__preview {
|
||||
position: relative;
|
||||
min-height: 210px;
|
||||
aspect-ratio: 4 / 3;
|
||||
min-height: 200px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(149, 160, 187, 0.28);
|
||||
border-radius: 14px;
|
||||
@@ -148,6 +149,49 @@ body {
|
||||
background-size: 34px 34px, 34px 34px, auto, auto;
|
||||
}
|
||||
|
||||
.camera-drawer__video,
|
||||
.camera-drawer__photo {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: none;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.camera-drawer__photo {
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.camera-drawer__preview.is-camera .camera-drawer__video {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.camera-drawer__preview.is-photo .camera-drawer__photo {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Hide the decorative lens/scan/placeholder once real media is showing. */
|
||||
.camera-drawer__preview.is-camera .camera-drawer__lens,
|
||||
.camera-drawer__preview.is-photo .camera-drawer__lens,
|
||||
.camera-drawer__preview.is-camera .camera-drawer__scan,
|
||||
.camera-drawer__preview.is-photo .camera-drawer__scan,
|
||||
.camera-drawer__preview.is-camera .camera-drawer__placeholder,
|
||||
.camera-drawer__preview.is-photo .camera-drawer__placeholder {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.camera-drawer__placeholder {
|
||||
position: absolute;
|
||||
inset: auto 18px 16px;
|
||||
z-index: 2;
|
||||
color: rgba(214, 220, 235, 0.78);
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.camera-drawer__lens {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
@@ -174,6 +218,7 @@ body {
|
||||
|
||||
.camera-drawer__corner {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-color: rgba(255, 255, 255, 0.7);
|
||||
@@ -229,6 +274,87 @@ body {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* 上传图片 + 使用摄像头 share one row. */
|
||||
.camera-drawer__sources {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
/* The camera device dropdown only appears after "使用摄像头" is selected. */
|
||||
.camera-drawer__device-row {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.camera-drawer__device-row[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Active state for the "使用摄像头" button once the camera is live. */
|
||||
.camera-drawer__source.is-active {
|
||||
border-color: var(--success);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.camera-drawer__source {
|
||||
flex: 1 1 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
min-height: 38px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
.camera-drawer__source.is-active {
|
||||
border-color: var(--success);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.camera-drawer__source:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.camera-drawer__samples {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.camera-drawer__samples:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.camera-drawer__sample {
|
||||
position: relative;
|
||||
aspect-ratio: 4 / 3;
|
||||
padding: 0;
|
||||
border: 2px solid transparent;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
background: #0f141f;
|
||||
}
|
||||
|
||||
.camera-drawer__sample img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.camera-drawer__sample:hover {
|
||||
border-color: rgba(149, 160, 187, 0.6);
|
||||
}
|
||||
|
||||
.camera-drawer__sample.is-selected {
|
||||
border-color: var(--success);
|
||||
box-shadow: 0 0 0 1px var(--success);
|
||||
}
|
||||
|
||||
.app__body {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) clamp(300px, 32vw, 420px);
|
||||
@@ -511,6 +637,18 @@ body {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.bubble__image {
|
||||
display: block;
|
||||
max-width: 240px;
|
||||
width: 100%;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.bubble__image + .bubble__text:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* WebSocket log --------------------------------------------------------- */
|
||||
|
||||
.ws-log {
|
||||
@@ -567,8 +705,8 @@ body {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: var(--text-dim);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.8px;
|
||||
letter-spacing: 0.5px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ws-log__header-left {
|
||||
@@ -823,11 +961,7 @@ body {
|
||||
outline: none;
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.device-picker__select:focus {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18);
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.device-picker__select:disabled {
|
||||
@@ -835,6 +969,11 @@ body {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.device-picker__select:focus {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18);
|
||||
}
|
||||
|
||||
.mic-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user