Rocket.chat: RTL Issue

Created on 7 Jul 2016  路  11Comments  路  Source: RocketChat/Rocket.Chat

Your Rocket.Chat version: demo.rocket.chat
ezgif com-video-to-gif

Most helpful comment

Hi I have this problem for Persian

All 11 comments

Hi I have this problem for Persian

the issue is present on all rtl languages

@sampaiodiego

@engelgabriel

@fduraibi

We will take a look.

@djeber I personally don't have time these day to look into it, so I hope someone else will fix it.

it seems the problem was in #line19 and #line24


https://github.com/RocketChat/Rocket.Chat/blob/master/packages/rocketchat-ui-flextab/flex-tab/flexTabBar.coffee

        if RocketChat.TabBar.isFlexOpen() and RocketChat.TabBar.getTemplate() is @template
            RocketChat.TabBar.closeFlex()
            $('.flex-tab').css('max-width', '')
            $('.main-content').css('right', '40px')
        else
            if not @openClick? or @openClick(e,t)
                if @width?
                    $('.flex-tab').css('max-width', "#{@width}px")
                    $('.main-content').css('right', "#{@width + 40}px")
                else
                    $('.flex-tab').css('max-width', '')

                RocketChat.TabBar.setTemplate @template, ->
                    $('.flex-tab')?.find("input[type='text']:first")?.focus()
                    $('.flex-tab .content')?.scrollTop(0)

maybe :)

You are right @Saleh7 the "right: 40px;" is set inline and take precedent over the correct css and it is LTR only.

rocket

@fduraibi :+1:


Rocket

I think this problem is solved now. It doesn't happen to me anymore after the update

Was this page helpful?
0 / 5 - 0 ratings

Related issues

karlprieb picture karlprieb  路  3Comments

tanc picture tanc  路  3Comments

ghost picture ghost  路  3Comments

mddvul22 picture mddvul22  路  3Comments

sta-szek picture sta-szek  路  3Comments