.box { display: flex; border: 1px solid #ddd; } .personnelBox { position: relative; flex-shrink: 0; width: 251px; height: calc(100vh - 212px); border-right: 1px solid #ddd; } .chatA, .chatB { display: flex; align-items: center; justify-content: flex-start; height: 65px; margin-bottom: 12px; padding: 0 12px; border-bottom: 1px solid #ddd; cursor: pointer; &:hover { background-color: #d6d6d7; } &.active { background-color: #c5c4c4; } } .chatB { margin-bottom: 0; border-bottom: none; } .chatAMsg { display: flex; flex: 1; align-items: flex-start; min-width: 0; padding-left: 12px; .chatAName { flex: 1; flex-shrink: 0; min-width: 0; overflow: hidden; font-size: 16px; white-space: nowrap; text-overflow: ellipsis; } } .avatar { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; line-height: 1; background-color: #69b1ff; border-radius: 4px; } .chatBBox { height: calc(100vh - 212px - 164px); overflow: auto; } .state0 { position: relative; background: #eee; } .chatLogBox { height: calc(100vh - 212px - 66px); padding: 12px; overflow: auto; } .logTop { display: flex; align-items: center; width: 100%; height: 65px; padding: 0 12px; border-bottom: 1px solid #ddd; } .flolowsBox { position: absolute; top: 65px; left: 0; z-index: 1; width: 100%; max-height: 50vh; overflow: auto; background-color: #fff; transform: translateY(20px); visibility: hidden; cursor: pointer; opacity: 0; transition: transform 0.3s, visibility 0.3s, opacity 0.3s; pointer-events: none; box-shadow: 0 4px 6px #ccc; &.show { z-index: 1; transform: translateY(0px); visibility: visible; opacity: 1; pointer-events: all; } } .modalAvatar { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-right: 12px; overflow: hidden; background-color: #69b1ff; border-radius: 6px; img { max-width: 100%; max-height: 100%; object-fit: cover; } }