123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- .els {
- white-space: nowrap; /* 强制文本不换行 */
- overflow: hidden; /* 隐藏溢出内容 */
- text-overflow: ellipsis; /* 显示省略号 */
- }
- .chat-container {
- border-radius: 14px;
- height: 100%;
- display: flex;
- flex-direction: column;
- border: 1px solid #dcdfe6;
- //background-color: #f0f0f0;
- background-color: #ffffff;
- }
- .message-list {
- flex: 1;
- overflow: hidden;
- position: relative;
- }
- .messages {
- padding: 12px 12px 0;
- min-height: 100%;
- display: flex;
- flex-direction: column;
- }
- .message-item {
- display: flex;
- margin-bottom: 20px;
- gap: 12px;
- color: #333;
- align-items: flex-start;
- animation: fadeIn 0.3s ease-in-out;
- }
- @keyframes fadeIn {
- from {
- opacity: 0;
- transform: translateY(10px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
- .message-item.self {
- flex-direction: row-reverse;
- }
- .message-content {
- max-width: 80%;
- }
- .username {
- font-size: 14px;
- color: #606266;
- margin-bottom: 4px;
- }
- .content {
- padding: 6px;
- background-color: #f0f4f8;
- border-radius: 4px;
- //background: linear-gradient(to bottom right, #D2B48C, #E8D5B5);
- //background: linear-gradient(to bottom, #D2B48C, #E8D5B5);
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
- word-break: break-all;
- line-height: 1.5;
- font-size: 14px;
- letter-spacing: 1px;
- }
- .content :deep(pre) {
- margin: 10px 0;
- border-radius: 8px;
- }
- .content :deep(code) {
- font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
- }
- .content :deep(p) {
- margin: 8px 0;
- }
- .content :deep(ul),
- .content :deep(ol) {
- padding-left: 20px;
- margin: 8px 0;
- }
- .content :deep(blockquote) {
- border-left: 4px solid #ddd;
- padding-left: 10px;
- color: #666;
- margin: 8px 0;
- }
- .self .content {
- background: #409eff;
- color: white;
- //border-bottom-right-radius: 4px;
- }
- .other .content {
- border-bottom-left-radius: 4px;
- }
- .timestamp {
- display: flex;
- justify-content: space-between;
- font-size: 12px;
- color: #909399;
- margin-top: 6px;
- }
- .timestamp span {
- transition: color 0.2s;
- }
- .timestamp span:hover {
- color: #409eff;
- }
- .info-card {
- margin: 10px;
- }
- .card-icon {
- color: #409eff;
- }
- @keyframes scrollTitle {
- 0% {
- transform: translateX(0);
- }
- 100% {
- transform: translateX(-100%);
- }
- }
- .upload :deep(.el-icon) {
- transition: color 0.3s;
- }
- .can-hover :deep(.el-icon:hover) {
- color: #409eff !important;
- }
- .el-check-tag {
- margin-right: 8px;
- transition: all 0.3s;
- }
- .el-check-tag:hover {
- transform: scale(1.05);
- }
- /* 加载中的消息样式 */
- .loading-content {
- min-height: 40px;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- }
- .loading-indicator {
- display: inline-block;
- align-items: center;
- gap: 4px;
- margin-left: 2px;
- .dot {
- width: 4px;
- height: 4px;
- margin: 0 2px;
- background-color: gray;
- border-radius: 50%;
- display: inline-block;
- animation: pulse 1.5s infinite ease-in-out;
- }
- .dot:nth-child(2) {
- animation-delay: 0.3s;
- }
- .dot:nth-child(3) {
- animation-delay: 0.6s;
- }
- @keyframes pulse {
- 0%,
- 100% {
- transform: scale(0.8);
- opacity: 0.6;
- }
- 50% {
- transform: scale(1.2);
- opacity: 1;
- }
- }
- }
- .input-area {
- padding: 8px 10px;
- color: black;
- background-color: #fff;
- border: 1px solid rgba(102, 102, 102, 0.3);
- border-radius: 16px;
- margin: 0 12px 12px;
- position: relative;
- .card_list {
- display: flex;
- flex-wrap: nowrap;
- overflow-x: auto;
- padding: 4px 0;
- .card_width {
- width: 124px !important;
- }
- }
- .card-content {
- flex-shrink: 0;
- width: fit-content;
- max-width: 260px;
- height: 50px;
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 8px 6px;
- margin: 0 8px 6px 0;
- background: #fff;
- border-radius: 10px;
- border: 1px solid rgba(0, 0, 0, 0.2);
- font-size: 14px;
- position: relative;
- .title-wrapper {
- display: flex;
- //width: fit-content;
- width: calc(100% - 30px);
- flex-direction: column;
- }
- .title-scroller {
- display: inline-block;
- white-space: nowrap;
- color: #000000;
- font-size: 14px;
- font-weight: 900;
- }
- .url-scroller {
- font-size: 12px;
- color: #909399;
- }
- .title-scroller.scroll {
- animation: scrollTitle 10s linear infinite;
- }
- .closeIcon {
- display: none;
- cursor: pointer;
- position: absolute;
- right: -5px;
- top: -5px;
- background-color: #ffffff;
- border-radius: 50%;
- z-index: 1;
- }
- }
- .closeShow {
- display: none;
- position: absolute;
- right: -5px;
- top: -5px;
- background-color: #ffffff;
- border-radius: 50%;
- z-index: 1;
- cursor: pointer;
- }
- .card-content:hover {
- .closeIcon {
- display: block;
- }
- }
- .card-btn {
- padding: 0 0 4px;
- .op {
- margin-right: 3px;
- }
- }
- .chat_area_op {
- margin-top: 3px;
- display: flex;
- justify-content: end;
- }
- }
- .input-area:hover {
- border-color: rgba(102, 102, 102, 0.4);
- }
- .input-area :deep(.el-textarea__inner) {
- border-radius: 8px;
- transition: border-color 0.3s;
- resize: none;
- box-shadow: none;
- }
- .input-area :deep(.el-textarea__inner) {
- padding: 0 4px;
- margin-top: 3px;
- }
- .input-area :deep(.el-textarea__inner:focus) {
- border-color: #409eff;
- box-shadow: none;
- }
- .buttom-clicked {
- color: #409eff;
- border-color: rgb(197.7, 225.9, 255);
- }
|