// @import './custom-theme.scss'; // 导入变量 @import './variables'; .inbox-list-container { background-color: #fff; border-radius: 0.4rem; padding: 1.5rem; width: 360px; flex-shrink: 0; .list-filter { display: flex; flex-flow: row wrap; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.875rem; .toggle-list { width: 100%; display: flex; flex-flow: row nowrap; background-color: $neutral-200; border-radius: 0.4rem; .toggle-option { padding: 0.5rem 0; cursor: pointer; border-right: 1px solid #d4d7de; transition: 0.25s; flex-grow: 1; text-align: center; &.active { color: white; background-color: $primary; &:hover { color: white; background-color: $primary; opacity: 0.8; } } &:hover { color: $neutral-700; background-color: $neutral-350; } &:first-child { border-top-left-radius: 0.4rem; border-bottom-left-radius: 0.4rem; } &:last-child { border-top-right-radius: 0.4rem; border-bottom-right-radius: 0.4rem; border-right: 1px solid transparent; } } } .select-list { display: flex; flex-flow: row nowrap; width: fit-content; .select-option { padding: 0 1rem; cursor: pointer; &:first-child { border-right: 1px solid $neutral-350; } &.active { color: $primary; } } } .actions { width: fit-content; cursor: pointer; } } .list-content { display: flex; flex-flow: column nowrap; gap: 0.5rem; .list-item { display: flex; flex-flow: row nowrap; justify-content: space-between; padding: 1rem; border-radius: 12px; cursor: pointer; transition: 0.25s; &:hover { background-color: $neutral-150; } &.active { background-color: $neutral-200; } .list-item-left { display: flex; flex-flow: row nowrap; gap: 0.5rem; align-items: center; .list-item-left-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; overflow: hidden; } .list-item-info { .list-message { color: $neutral-700; } } } .list-item-right { display: flex; flex-flow: column nowrap; align-items: flex-end; justify-content: space-between; height: 100%; gap: 0.25rem; .list-item-right-time { color: $neutral-600; font-size: 0.875rem; } .list-item-right-badge { width: 1.25rem; height: 1.25rem; border-radius: 50%; background-color: #de3b40; color: white; text-align: center; font-size: 0.75rem; line-height: 1.25rem; } } } } } .chat-window { background-color: #fff; border-radius: 0.4rem; display: flex; flex-flow: column nowrap; flex-grow: 1; .chat-window-header { display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid $neutral-200; .chat-window-header-left { display: flex; flex-flow: row nowrap; gap: 0.5rem; align-items: center; .chat-window-header-left-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; overflow: hidden; } } .chat-window-header-right { display: flex; flex-flow: row nowrap; gap: 0.5rem; align-items: center; font-size: 0.875rem; .platform-selection { display: flex; flex-flow: row nowrap; .platform-selection-item { padding: 0.5rem; cursor: pointer; transition: 0.25s; border-bottom: 3px solid transparent; font-weight: 600; &.active { color: $primary; border-bottom: 3px solid $primary; } } } .actions { cursor: pointer; } } } .chat-window-body { display: flex; flex-flow: column nowrap; flex-grow: 1; height: 100%; overflow: hidden; .chat-body { padding: 1rem; overflow-y: auto; height: 100%; .message { max-width: 80%; margin-bottom: 1rem; padding: 0.75rem 1rem; border-radius: 1rem; line-height: 1.5; } .message.user { background-color: $primary-150; align-self: flex-end; margin-left: auto; } .message.assistant { background-color: $neutral-200; align-self: flex-start; margin-right: auto; } } } .chat-window-footer { border-top: 1px solid $neutral-200; padding: 1rem; .footer-input { display: flex; flex-flow: row nowrap; gap: 0.5rem; align-items: center; } } } .chat-textarea { resize: none; /* 禁用右下角拖拽 */ overflow: hidden; /* 防止出现滚动条 */ line-height: 1.5; font-size: 1rem; border-radius: 0.5rem; padding: 0.75rem 1rem; box-shadow: none; border: 1px solid #ccc; }