.video-message {} .video-box { width: 160px; height: 120px; background-color: rgba(0, 0, 0, 0.2); border-radius: 10px 2px 10px 10px; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; } .my-video { border-radius: 10px 2px 10px 10px; } .icon { position: absolute; bottom: 30px; right: 30px; } .poster{ width: 100%; height: 100%; position: absolute; left: 0; right: 0; z-index: 1; } .video-icon { position: relative; z-index: 10; display: block; width: 32px; height: 32px; }