ul#message_preview { background-color: rgb(var(--movim-background)); min-height: 100%; box-sizing: border-box; padding: 0.75rem 0; } ul#message_preview li { padding: 0.75rem; } ul#message_preview li > div.bubble::after { white-space: nowrap; } ul#message_preview li div.bubble { max-width: calc(100% - 2rem); pointer-events: none; background-color: rgb(var(--movim-background-main)); } ul#message_preview.list li > div.bubble:not(.file)::before { background-color: rgb(var(--movim-background-main)); } ul#message_preview li div.bubble:not(.file) { padding-right: 5rem; margin-bottom: 0; padding-bottom: 3rem; } ul#message_preview li.oppose { flex-direction: row-reverse; } ul#message_preview li div.bubble div.message > p { white-space: initial; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; } ul#message_preview li.reactions { padding: 0 0.5rem; padding-bottom: 0.75rem; } ul#message_preview li.reactions a.chip { max-width: 100%; } /* Shared files */ #chat_files ul.tabs > li { width: 25%; float: left; } #chat_files ul.tabs > li > a { display: block; overflow: hidden; text-overflow: ellipsis; padding: 0 0.25rem; } #chat_files ul.files_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.25rem; padding: 0.5rem; margin: 0; list-style: none; justify-items: stretch; } #chat_files ul.files_grid > li { display: block; justify-self: stretch; width: auto; margin: 0; list-style: none; position: relative; aspect-ratio: 1 / 1; min-height: 0; padding: 0; overflow: hidden; background-color: rgba(var(--movim-font), 0.06); } #chat_files ul.files_grid > li > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; cursor: pointer; } #chat_files audio { display: block; width: 100%; margin: 0.25rem 0; } @media screen and (max-width: 576px) { #chat_files ul.files_grid { grid-template-columns: repeat(3, 1fr); } }