feat(chat): add composer action menu
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
/* ChatInputBar 输入栏容器样式(与 Dart chat_input_bar.dart 对齐) */
|
||||
|
||||
/* Keyboard inset is a total bottom inset, not an addition to normal spacing. */
|
||||
|
||||
.bar {
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
flex: 0 0 auto;
|
||||
padding: 0
|
||||
padding: clamp(7px, 1.852vw, 10px)
|
||||
calc(var(--chat-inline-padding, 16px) + var(--app-safe-right, 0px))
|
||||
max(
|
||||
calc(var(--spacing-lg, 16px) + var(--app-safe-bottom, 0px)),
|
||||
@@ -12,28 +12,43 @@
|
||||
)
|
||||
calc(var(--chat-inline-padding, 16px) + var(--app-safe-left, 0px));
|
||||
background: transparent;
|
||||
transition: padding-top 0.2s ease, padding-bottom 0.2s ease,
|
||||
background-color 0.2s ease, box-shadow 0.2s ease;
|
||||
transition: padding-bottom 0.2s ease;
|
||||
}
|
||||
|
||||
.barFocused {
|
||||
padding-top: var(--spacing-md, 12px);
|
||||
background: #feeff2;
|
||||
box-shadow: 0 4px 12px var(--color-input-box-shadow, rgba(0, 0, 0, 0.1));
|
||||
.composer {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* 内层:白底 + 大圆角(Dart AppRadius.radius32)+ focused 时 accent 边框 */
|
||||
.row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm, 8px);
|
||||
padding: var(--spacing-sm, 8px);
|
||||
background: #fff;
|
||||
gap: 6px;
|
||||
padding: 6px;
|
||||
border: 1px solid rgba(94, 62, 73, 0.11);
|
||||
border-radius: var(--radius-full, 999px);
|
||||
border: 1px solid transparent;
|
||||
transition: border-color 0.2s ease;
|
||||
background: rgba(255, 255, 255, 0.94);
|
||||
box-shadow:
|
||||
0 12px 30px rgba(75, 48, 57, 0.1),
|
||||
0 2px 8px rgba(75, 48, 57, 0.05);
|
||||
backdrop-filter: blur(18px);
|
||||
transition:
|
||||
border-color 0.2s ease,
|
||||
box-shadow 0.2s ease,
|
||||
background 0.2s ease;
|
||||
}
|
||||
|
||||
.rowFocused {
|
||||
border-color: var(--color-accent, #f84d96);
|
||||
border-color: rgba(246, 87, 160, 0.62);
|
||||
background: rgba(255, 255, 255, 0.98);
|
||||
box-shadow:
|
||||
0 0 0 3px rgba(246, 87, 160, 0.1),
|
||||
0 14px 34px rgba(92, 52, 67, 0.12);
|
||||
}
|
||||
|
||||
@media (max-width: 350px) {
|
||||
.bar {
|
||||
padding-right: calc(12px + var(--app-safe-right, 0px));
|
||||
padding-left: calc(12px + var(--app-safe-left, 0px));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user