Fixing images alignment in portrait mode

This commit is contained in:
Leandro Borges Ferreira
2023-02-26 16:29:07 +01:00
parent 6b3c8ad95d
commit 4dda50df73
@@ -97,8 +97,9 @@ double _landScapeAlign(
possible.
*/
const constant = 3000;
if (user?.id == message.user?.id) {
if (hasAttachments) {
result = 0;
} else if (user?.id == message.user?.id) {
if (divFactor >= 1.7) {
result = shiftFactor - maxWidth / constant;
} else {