/* react-mentions样式 */ .mentionsWrapper { position: relative; width: 100%; } .mentionsWrapper :global(.mentions) { margin: 0; } .mentionsWrapper :global(.mentions__control) { font-size: 14px; min-height: 80px; } .mentionsWrapper :global(.mentions__input) { padding: 12px; outline: none; border: none; overflow: auto; line-height: 1.5; } .mentionsWrapper :global(.mentions__highlighter) { padding: 12px; border: none; line-height: 1.5; } .mentionsWrapper :global(.mentions__highlighter__substring) { visibility: hidden; } .mentionsWrapper :global(.mentions__suggestions__list) { background-color: white; border: 1px solid #E5E7EB; border-radius: 8px; font-size: 14px; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); max-height: 200px; overflow-y: auto; position: absolute; bottom: 100%; left: 0; right: 0; z-index: 100; } .mentionsWrapper :global(.mentions__suggestions__item) { padding: 8px 12px; border-bottom: 1px solid #F3F4F6; cursor: pointer; } .mentionsWrapper :global(.mentions__suggestions__item--focused) { background-color: #F3F4F6; } .mentionsWrapper :global(.mentions__mention) { background-color: #EFF6FF; color: #1E40AF; border-radius: 4px; padding: 2px 4px; position: relative; z-index: 1; pointer-events: none; }