Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

RTL Issue

Open mrj0b opened this issue 10 years ago • 11 comments

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

mrj0b avatar Jul 07 '16 21:07 mrj0b

Hi I have this problem for Persian

bazarnew avatar Jul 12 '16 06:07 bazarnew

the issue is present on all rtl languages

mrj0b avatar Jul 12 '16 19:07 mrj0b

@sampaiodiego

bazarnew avatar Jul 13 '16 04:07 bazarnew

@engelgabriel

mrj0b avatar Jul 13 '16 15:07 mrj0b

@fduraibi

mrj0b avatar Jul 13 '16 22:07 mrj0b

We will take a look.

engelgabriel avatar Jul 13 '16 22:07 engelgabriel

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

fduraibi avatar Jul 16 '16 12:07 fduraibi

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 :)

Saleh7 avatar Jul 16 '16 12:07 Saleh7

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

rocket

fduraibi avatar Jul 16 '16 13:07 fduraibi

@fduraibi :+1:


Rocket

Saleh7 avatar Jul 16 '16 13:07 Saleh7

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

fduraibi avatar Aug 06 '16 21:08 fduraibi