Skip to content

Rocket RTL Alignment Fix by hedayat

Details

Authorhedayat

LicenseCC-BY

Categoryrocketchat

Created

Updated

Size349 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

RTL text appear in Rocket chat with correct direction but are left aligned. This style fixes the alignment so that it follows text direction.

Note that it doesn't work for quotes and some message types, but it works for normal messages.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           Rocket RTL Fix - 10/29/2022, 2:33:23 PM
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    A new userstyle
@author         Me
==/UserStyle== */

@-moz-document url-prefix("https://rocket.") {
    /* Insert code here... */
    .message .body {
            text-align: initial;
    }
}

Reviews

No reviews yet.