chat.module.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952
  1. @import "../styles/animation.scss";
  2. .markdown-preview {
  3. :global {
  4. img {
  5. max-width: 100%;
  6. width: 100%;
  7. height: auto;
  8. display: block;
  9. }
  10. // /* 覆盖 markdown 渲染出来的样式 */
  11. .ant-typography h1 {
  12. font-size: 18px !important;
  13. /* 调整大小 */
  14. color: #333;
  15. /* 字体颜色 */
  16. margin: 2px 0;
  17. }
  18. .ant-typography h2 {
  19. font-size: 16px !important;
  20. color: #333;
  21. margin: 2px 0;
  22. }
  23. .ant-typography h3 {
  24. font-size: 14px !important;
  25. color: #333;
  26. margin: 2px 0;
  27. // border-left: 4px solid #4caf50; /* 左边加一条绿色竖线 */
  28. }
  29. .ant-typography h4 {
  30. font-size: 14px !important;
  31. color: #333;
  32. margin: 2px 0;
  33. // border-left: 4px solid #4caf50; /* 左边加一条绿色竖线 */
  34. }
  35. }
  36. }
  37. .ant-spin-container {
  38. width: 100%;
  39. }
  40. .attach-images {
  41. position: absolute;
  42. left: 30px;
  43. bottom: 32px;
  44. display: flex;
  45. }
  46. .attach-image {
  47. cursor: default;
  48. width: 64px;
  49. height: 64px;
  50. border: rgba($color: #888, $alpha: 0.2) 1px solid;
  51. border-radius: 5px;
  52. margin-right: 10px;
  53. background-size: cover;
  54. background-position: center;
  55. background-color: var(--white);
  56. .attach-image-mask {
  57. width: 100%;
  58. height: 100%;
  59. opacity: 0;
  60. transition: all ease 0.2s;
  61. }
  62. .attach-image-mask:hover {
  63. opacity: 1;
  64. }
  65. .delete-image {
  66. width: 24px;
  67. height: 24px;
  68. cursor: pointer;
  69. display: flex;
  70. align-items: center;
  71. justify-content: center;
  72. border-radius: 5px;
  73. float: right;
  74. background-color: var(--white);
  75. }
  76. }
  77. .chat-input-actions {
  78. display: flex;
  79. flex-wrap: wrap;
  80. .chat-input-action {
  81. display: inline-flex;
  82. border-radius: 20px;
  83. font-size: 12px;
  84. background-color: var(--white);
  85. color: var(--black);
  86. border: var(--border-in-light);
  87. padding: 4px 10px;
  88. animation: slide-in ease 0.3s;
  89. box-shadow: var(--card-shadow);
  90. transition: width ease 0.3s;
  91. align-items: center;
  92. height: 16px;
  93. width: var(--icon-width);
  94. overflow: hidden;
  95. &:not(:last-child) {
  96. margin-right: 5px;
  97. }
  98. .text {
  99. white-space: nowrap;
  100. padding-left: 5px;
  101. opacity: 0;
  102. transform: translateX(-5px);
  103. transition: all ease 0.3s;
  104. pointer-events: none;
  105. }
  106. &:hover {
  107. --delay: 0.5s;
  108. width: var(--full-width);
  109. transition-delay: var(--delay);
  110. .text {
  111. transition-delay: var(--delay);
  112. opacity: 1;
  113. transform: translate(0);
  114. }
  115. }
  116. .text,
  117. .icon {
  118. display: flex;
  119. align-items: center;
  120. justify-content: center;
  121. }
  122. }
  123. }
  124. .prompt-toast {
  125. position: absolute;
  126. bottom: -50px;
  127. z-index: 999;
  128. display: flex;
  129. justify-content: center;
  130. width: calc(100% - 40px);
  131. .prompt-toast-inner {
  132. display: flex;
  133. justify-content: center;
  134. align-items: center;
  135. font-size: 12px;
  136. background-color: var(--white);
  137. color: var(--black);
  138. border: var(--border-in-light);
  139. box-shadow: var(--card-shadow);
  140. padding: 10px 20px;
  141. border-radius: 100px;
  142. animation: slide-in-from-top ease 0.3s;
  143. .prompt-toast-content {
  144. margin-left: 10px;
  145. }
  146. }
  147. }
  148. .section-title {
  149. font-size: 12px;
  150. font-weight: bold;
  151. margin-bottom: 10px;
  152. display: flex;
  153. justify-content: space-between;
  154. align-items: center;
  155. .section-title-action {
  156. display: flex;
  157. align-items: center;
  158. }
  159. }
  160. .context-prompt {
  161. .context-prompt-insert {
  162. display: flex;
  163. justify-content: center;
  164. padding: 4px;
  165. opacity: 0.2;
  166. transition: all ease 0.3s;
  167. background-color: rgba(0, 0, 0, 0);
  168. cursor: pointer;
  169. border-radius: 4px;
  170. margin-top: 4px;
  171. margin-bottom: 4px;
  172. &:hover {
  173. opacity: 1;
  174. background-color: rgba(0, 0, 0, 0.05);
  175. }
  176. }
  177. .context-prompt-row {
  178. display: flex;
  179. justify-content: center;
  180. width: 100%;
  181. &:hover {
  182. .context-drag {
  183. opacity: 1;
  184. }
  185. }
  186. .context-drag {
  187. display: flex;
  188. align-items: center;
  189. opacity: 0.5;
  190. transition: all ease 0.3s;
  191. }
  192. .context-role {
  193. margin-right: 10px;
  194. }
  195. .context-content {
  196. flex: 1;
  197. max-width: 100%;
  198. text-align: left;
  199. }
  200. .context-delete-button {
  201. margin-left: 10px;
  202. }
  203. }
  204. .context-prompt-button {
  205. flex: 1;
  206. }
  207. }
  208. .memory-prompt {
  209. margin: 20px 0;
  210. .memory-prompt-content {
  211. background-color: var(--white);
  212. color: var(--black);
  213. border: var(--border-in-light);
  214. border-radius: 10px;
  215. padding: 10px;
  216. font-size: 12px;
  217. user-select: text;
  218. }
  219. }
  220. .clear-context {
  221. margin: 20px 0 0 0;
  222. padding: 4px 0;
  223. border-top: var(--border-in-light);
  224. border-bottom: var(--border-in-light);
  225. box-shadow: var(--card-shadow) inset;
  226. display: flex;
  227. justify-content: center;
  228. align-items: center;
  229. color: var(--black);
  230. transition: all ease 0.3s;
  231. cursor: pointer;
  232. overflow: hidden;
  233. position: relative;
  234. font-size: 12px;
  235. animation: slide-in ease 0.3s;
  236. $linear: linear-gradient(to right,
  237. rgba(0, 0, 0, 0),
  238. rgba(0, 0, 0, 1),
  239. rgba(0, 0, 0, 0));
  240. mask-image: $linear;
  241. @mixin show {
  242. transform: translateY(0);
  243. position: relative;
  244. transition: all ease 0.3s;
  245. opacity: 1;
  246. }
  247. @mixin hide {
  248. transform: translateY(-50%);
  249. position: absolute;
  250. transition: all ease 0.1s;
  251. opacity: 0;
  252. }
  253. &-tips {
  254. @include show;
  255. opacity: 0.5;
  256. }
  257. &-revert-btn {
  258. color: var(--primary);
  259. @include hide;
  260. }
  261. &:hover {
  262. opacity: 1;
  263. border-color: var(--primary);
  264. .clear-context-tips {
  265. @include hide;
  266. }
  267. .clear-context-revert-btn {
  268. @include show;
  269. }
  270. }
  271. }
  272. .chat {
  273. display: flex;
  274. flex-direction: column;
  275. position: relative;
  276. height: 100%;
  277. // background-image: url("/chat-bg.jpg");
  278. /* 使背景图片按比例填充容器 */
  279. background-size: cover;
  280. /* 居中显示背景图片 */
  281. background-position: center;
  282. /* 避免重复 */
  283. background-repeat: no-repeat;
  284. }
  285. .chat-body {
  286. flex: 1;
  287. overflow: auto;
  288. overflow-x: hidden;
  289. padding: 20px;
  290. padding-bottom: 40px;
  291. }
  292. .chat-body-main-title {
  293. cursor: pointer;
  294. &:hover {
  295. text-decoration: none;
  296. }
  297. }
  298. @media only screen and (max-width: 600px) {
  299. .chat-body-title {
  300. text-align: center;
  301. }
  302. }
  303. .chat-message {
  304. display: flex;
  305. flex-direction: row;
  306. &:last-child {
  307. animation: slide-in ease 0.3s;
  308. }
  309. }
  310. .chat-message-user {
  311. display: flex;
  312. flex-direction: row-reverse;
  313. .chat-message-header {
  314. flex-direction: row-reverse;
  315. }
  316. }
  317. .chat-message-header {
  318. margin-top: 20px;
  319. display: flex;
  320. align-items: center;
  321. .chat-message-actions {
  322. display: flex;
  323. box-sizing: border-box;
  324. font-size: 12px;
  325. align-items: flex-end;
  326. justify-content: space-between;
  327. transition: all ease 0.3s;
  328. transform: scale(0.9) translateY(5px);
  329. margin: 0 10px;
  330. opacity: 0;
  331. pointer-events: none;
  332. .chat-input-actions {
  333. display: flex;
  334. flex-wrap: nowrap;
  335. }
  336. }
  337. }
  338. .chat-message-container {
  339. max-width: var(--message-max-width);
  340. display: flex;
  341. flex-direction: column;
  342. align-items: flex-start;
  343. &:hover {
  344. .chat-message-edit {
  345. opacity: 0.9;
  346. }
  347. .chat-message-actions {
  348. opacity: 1;
  349. pointer-events: all;
  350. transform: scale(1) translateY(0);
  351. }
  352. }
  353. }
  354. .chat-message-user>.chat-message-container {
  355. align-items: flex-end;
  356. }
  357. .chat-message-avatar {
  358. position: relative;
  359. .chat-message-edit {
  360. position: absolute;
  361. height: 100%;
  362. width: 100%;
  363. overflow: hidden;
  364. display: flex;
  365. align-items: center;
  366. justify-content: center;
  367. opacity: 0;
  368. transition: all ease 0.3s;
  369. button {
  370. padding: 7px;
  371. }
  372. }
  373. /* Specific styles for iOS devices */
  374. @media screen and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 2) {
  375. @supports (-webkit-touch-callout: none) {
  376. .chat-message-edit {
  377. top: -8%;
  378. }
  379. }
  380. }
  381. }
  382. .chat-message-status {
  383. font-size: 12px;
  384. color: #aaa;
  385. line-height: 1.5;
  386. margin-top: 5px;
  387. }
  388. .chat-message-item {
  389. box-sizing: border-box;
  390. max-width: 100%;
  391. margin-top: 10px;
  392. border-radius: 10px;
  393. background-color: #FFFFFF;
  394. padding: 10px;
  395. font-size: 14px;
  396. user-select: text;
  397. word-break: break-word;
  398. border: var(--border-in-light);
  399. position: relative;
  400. transition: all ease 0.3s;
  401. }
  402. .chat-message-item-image {
  403. width: 100%;
  404. margin-top: 10px;
  405. }
  406. .chat-message-item-images {
  407. width: 100%;
  408. display: grid;
  409. justify-content: left;
  410. grid-gap: 10px;
  411. grid-template-columns: repeat(var(--image-count), auto);
  412. margin-top: 10px;
  413. }
  414. .chat-message-item-image-multi {
  415. object-fit: cover;
  416. background-size: cover;
  417. background-position: center;
  418. background-repeat: no-repeat;
  419. }
  420. .chat-message-item-image,
  421. .chat-message-item-image-multi {
  422. box-sizing: border-box;
  423. border-radius: 10px;
  424. border: rgba($color: #888, $alpha: 0.2) 1px solid;
  425. }
  426. @media only screen and (max-width: 600px) {
  427. $calc-image-width: calc(100vw / 3 * 2 / var(--image-count));
  428. .chat-message-item-image-multi {
  429. width: $calc-image-width;
  430. height: $calc-image-width;
  431. }
  432. .chat-message-item-image {
  433. max-width: calc(100vw / 3 * 2);
  434. }
  435. }
  436. @media screen and (min-width: 600px) {
  437. $max-image-width: calc(calc(1200px - var(--sidebar-width)) / 3 * 2 / var(--image-count));
  438. $image-width: calc(calc(var(--window-width) - var(--sidebar-width)) / 3 * 2 / var(--image-count));
  439. .chat-message-item-image-multi {
  440. width: $image-width;
  441. height: $image-width;
  442. max-width: $max-image-width;
  443. max-height: $max-image-width;
  444. }
  445. .chat-message-item-image {
  446. max-width: calc(calc(1200px - var(--sidebar-width)) / 3 * 2);
  447. }
  448. }
  449. .chat-message-action-date {
  450. font-size: 12px;
  451. opacity: 0.2;
  452. white-space: nowrap;
  453. transition: all ease 0.6s;
  454. color: var(--black);
  455. text-align: right;
  456. width: 100%;
  457. box-sizing: border-box;
  458. padding-right: 10px;
  459. pointer-events: none;
  460. z-index: 1;
  461. }
  462. .chat-message-user>.chat-message-container>.chat-message-item {
  463. // background-color: var(--second);
  464. color: #4096ff !important;
  465. border: 1px solid #4096ff;
  466. .markdown-body {
  467. color: #4096ff !important;
  468. }
  469. &:hover {
  470. min-width: 0;
  471. }
  472. }
  473. .chat-input-panel {
  474. position: relative;
  475. width: 100%;
  476. padding: 16px;
  477. padding-top: 16px;
  478. box-sizing: border-box;
  479. flex-direction: column;
  480. background: transparent;
  481. // box-shadow: var(--card-shadow);
  482. // 下方线条
  483. border-top: 1px solid #dedede;
  484. // border-top: none;
  485. // 背景
  486. // background: rgba(155, 155, 255, 0.2);
  487. // 背景模糊程度
  488. // backdrop-filter: blur(2px);
  489. .chat-input-actions {
  490. .chat-input-action {
  491. margin-bottom: 10px;
  492. }
  493. }
  494. }
  495. @mixin single-line {
  496. white-space: nowrap;
  497. overflow: hidden;
  498. text-overflow: ellipsis;
  499. }
  500. .prompt-hints {
  501. min-height: 20px;
  502. width: 100%;
  503. max-height: 50vh;
  504. overflow: auto;
  505. display: flex;
  506. flex-direction: column-reverse;
  507. background-color: var(--white);
  508. border: var(--border-in-light);
  509. border-radius: 10px;
  510. margin-bottom: 10px;
  511. box-shadow: var(--shadow);
  512. .prompt-hint {
  513. color: var(--black);
  514. padding: 6px 10px;
  515. animation: slide-in ease 0.3s;
  516. cursor: pointer;
  517. transition: all ease 0.3s;
  518. border: transparent 1px solid;
  519. margin: 4px;
  520. border-radius: 8px;
  521. &:not(:last-child) {
  522. margin-top: 0;
  523. }
  524. .hint-title {
  525. font-size: 12px;
  526. font-weight: bolder;
  527. @include single-line();
  528. }
  529. .hint-content {
  530. font-size: 12px;
  531. @include single-line();
  532. }
  533. &-selected,
  534. &:hover {
  535. border-color: var(--primary);
  536. }
  537. }
  538. }
  539. .chat-input-panel-inner {
  540. cursor: text;
  541. display: flex;
  542. flex-direction: column; // 垂直布局
  543. flex: 1;
  544. border-radius: 16px;
  545. border: var(--border-in-light);
  546. position: relative;
  547. // min-height: 100px;
  548. max-height: 120px;
  549. overflow-y: auto;
  550. overflow: hidden;
  551. }
  552. .chat-input-panel-inner-attach {
  553. padding-bottom: 80px;
  554. }
  555. .chat-input-panel-inner:has(.chat-input:focus) {
  556. border: 1px solid var(--primary);
  557. }
  558. .chat-input-panel-inner:has(.chat-input2:focus) {
  559. border-color: #495fe6;
  560. }
  561. .chat-input {
  562. flex: 1;
  563. height: 100%;
  564. width: 100%;
  565. // border-radius: 16px;
  566. border: none;
  567. background: transparent;
  568. box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03);
  569. color: var(--black) !important;
  570. font-family: inherit;
  571. padding: 16px 16px 8px 16px;
  572. resize: none;
  573. outline: none;
  574. box-sizing: border-box;
  575. min-height: 60px;
  576. font-size: 14px;
  577. line-height: 1.5;
  578. // 文字颜色
  579. // color: #FFFFFF;
  580. }
  581. .chat-input2 {
  582. @extend .chat-input;
  583. }
  584. // placeholder颜色
  585. .chat-input::placeholder {
  586. color: #FFFFFF;
  587. }
  588. .chat-input-send {
  589. // background-color: var(--primary);
  590. // color: white;
  591. position: absolute;
  592. right: 10px;
  593. bottom: 10px;
  594. border-radius: 50%;
  595. }
  596. .speech-button {
  597. background: transparent;
  598. background: transparent;
  599. color: #4096ff;
  600. box-shadow:none;
  601. padding: 0 10px;
  602. margin-right: 10px;
  603. }
  604. .speech-button:hover {
  605. background: rgba(64, 150, 255, 0.1) !important;
  606. color: #4096ff !important;
  607. box-shadow:none;
  608. padding: 0 10px;
  609. margin-right: 10px;
  610. }
  611. .send_input:disabled {
  612. background: #4096ff !important;
  613. color: white !important;
  614. opacity: 0.45 !important;
  615. }
  616. .chat-input-lianwang {
  617. width: 50px;
  618. min-width: 83px;
  619. padding: 0 12px;
  620. height: 28px;
  621. border-radius: 18px;
  622. font-size: 12px;
  623. display: flex;
  624. justify-content: center;
  625. align-items: center;
  626. cursor: pointer;
  627. transition: all 0.2s ease;
  628. user-select: none;
  629. margin-left: 10px;
  630. margin-bottom: 10px;
  631. }
  632. // 新增:输入框内部按钮区域样式
  633. .chat-input-bottom-bar {
  634. display: flex;
  635. justify-content: space-between;
  636. align-items: center;
  637. padding: 8px 16px 16px 16px;
  638. flex-shrink: 0;
  639. // border-top: 1px solid #f3f4f6;
  640. margin-top: auto;
  641. // 确保按钮区域布局稳定
  642. position: relative;
  643. // 移动端优化
  644. @media only screen and (max-width: 600px) {
  645. justify-content: flex-start;
  646. gap: 8px;
  647. flex-wrap: wrap;
  648. // 左侧选项区域
  649. >div:first-child {
  650. flex: 1;
  651. min-width: 0;
  652. }
  653. // 右侧按钮区域(包含上传和发送按钮)
  654. >div:last-child {
  655. flex-shrink: 0;
  656. display: flex;
  657. align-items: center;
  658. gap: 8px;
  659. }
  660. }
  661. .left-options {
  662. display: flex;
  663. align-items: center;
  664. gap: 8px;
  665. .option-item {
  666. // 未使用
  667. display: flex;
  668. height: 28px;
  669. border-radius: 16px;
  670. font-size: 12px;
  671. padding: 0px 12px;
  672. justify-content: center;
  673. align-items: center;
  674. margin-right: 10px;
  675. cursor: pointer;
  676. background: #f3f4f6; // 默认状态
  677. color: #000000; // 默认状态
  678. // border: 1px solid transparent; // 默认状态
  679. transition: all 0.2s ease;
  680. user-select: none;
  681. // 激活状态
  682. &.active {
  683. background: #dee9fc;
  684. color: #3875f6;
  685. // border: 1px solid #3875f6;
  686. }
  687. &:hover {
  688. background-color: #f9fafb;
  689. color: #374151;
  690. }
  691. // .chevron {
  692. // margin-left: 4px;
  693. // font-size: 10px;
  694. // opacity: 0.6;
  695. // }
  696. }
  697. }
  698. .middle-action {
  699. .primary-button {
  700. display: flex;
  701. align-items: center;
  702. gap: 6px;
  703. padding: 6px 12px;
  704. background: #dbeafe;
  705. color: #1e40af;
  706. border: none;
  707. border-radius: 8px;
  708. font-size: 12px;
  709. cursor: pointer;
  710. transition: all 0.2s ease;
  711. &:hover {
  712. background: #bfdbfe;
  713. }
  714. .chevron {
  715. font-size: 10px;
  716. opacity: 0.7;
  717. }
  718. }
  719. }
  720. .right-actions {
  721. display: flex;
  722. align-items: center;
  723. gap: 8px;
  724. .action-icon {
  725. width: 24px;
  726. height: 24px;
  727. display: flex;
  728. align-items: center;
  729. justify-content: center;
  730. border-radius: 50%;
  731. cursor: pointer;
  732. transition: all 0.2s ease;
  733. &:hover {
  734. background-color: #f3f4f6;
  735. }
  736. &.send-button {
  737. background: #6b7280;
  738. color: white;
  739. &:hover {
  740. background: #4b5563;
  741. }
  742. }
  743. }
  744. }
  745. }
  746. @media only screen and (max-width: 600px) {
  747. .chat-input {
  748. font-size: 16px;
  749. }
  750. .chat-input-send {
  751. bottom: 30px;
  752. }
  753. // 移动端输入框内部优化
  754. .chat-input-panel-inner {
  755. min-height: 100px;
  756. max-height: 120px;
  757. }
  758. // 针对特定手机屏幕的额外优化
  759. @media only screen and (max-width: 480px) {
  760. // 针对DeepSeekHomeChat组件的按钮优化
  761. .chat-input-panel+div[style*="display: flex"] {
  762. padding: 4px 8px !important;
  763. gap: 4px !important;
  764. >div:first-child {
  765. gap: 8px !important;
  766. flex-wrap: wrap !important;
  767. >div {
  768. padding: 0 8px !important;
  769. height: 26px !important;
  770. font-size: 11px !important;
  771. margin-right: 8px !important;
  772. img {
  773. height: 18px !important;
  774. }
  775. }
  776. }
  777. >div:last-child {
  778. width: 28px !important;
  779. height: 28px !important;
  780. flex-shrink: 0 !important;
  781. }
  782. }
  783. }
  784. // 移动端输入框优化
  785. .chat-input2 {
  786. font-size: 16px; // 防止iOS缩放
  787. line-height: 1.4;
  788. padding: 12px 16px;
  789. }
  790. // 通用移动端按钮容器优化
  791. .chat-input-panel+div[style*="display: flex"] {
  792. display: flex !important;
  793. justify-content: space-between !important;
  794. align-items: center !important;
  795. flex-wrap: nowrap !important;
  796. padding: 6px 12px !important;
  797. gap: 8px !important;
  798. >div:first-child {
  799. display: flex !important;
  800. align-items: center !important;
  801. gap: 8px !important;
  802. flex-wrap: wrap !important;
  803. flex: 1 !important;
  804. min-width: 0 !important;
  805. }
  806. >div:last-child {
  807. flex-shrink: 0 !important;
  808. display: flex !important;
  809. align-items: center !important;
  810. justify-content: center !important;
  811. }
  812. }
  813. }