.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: #bae0ff; } &.active { background-color: #bae0ff; } } .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; } .inGroupAvatar { position: relative; display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 56px; height: 56px; line-height: 1; background-color: #69b1ff; border-radius: 4px; } .chatBBox { position: relative; height: calc(100vh - 212px - 164px); overflow: auto; } .delFollowList { position: absolute; top: calc(100% - 34px); z-index: 1; width: 100%; height: 34px; background-color: #fff; transition: top 0.3s, height 0.3s; &.delFollowListShow { top: 164px; height: calc(100% - 164px); } } .delFollowListBar { z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 12px; color: #1890ff; cursor: pointer; &:hover { background: #eee; } } .delFollowListBox { height: 0; overflow: hidden; &.delFollowListBoxShow { height: calc(100% - 34px); 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; box-shadow: 0 4px 6px #ccc; transform: translateY(20px); visibility: hidden; cursor: pointer; opacity: 0; transition: transform 0.3s, visibility 0.3s, opacity 0.3s; pointer-events: none; &.show { z-index: 11; 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; } }