Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: RTL Support #174

Open
wants to merge 11 commits into
base: v2.2
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix RTL directions in the todo list container
  • Loading branch information
itsmohmans committed Feb 22, 2023
commit 3b6bdd6bf8dc98868dc8786da576b72f4161e47c
10 changes: 7 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
'full-screen': !showCustomList,
'hidden-lists-container': hideTopListContainer,
'full-screen-divider': hideBottomListContainer,
'rtl': isRTL,
}">
<i class="bi-chevron-left slider-btn" ref="weekLeft" @click="weekMoveLeft"></i>
<i class="bi-chevron-left slider-btn" ref="weekLeft" @click="isRTL ? weekMoveRight() : weekMoveLeft()"></i>
<div class="todo-slider" ref="weekListContainer">
<to-do-list v-for="date in dates_array" :key="date" :id="date" :showCustomList="showCustomList"
@todo-list-mounted="todoListMounted">
</to-do-list>
</div>
<i class="bi-chevron-right slider-btn" ref="weekRight" @click="weekMoveRight"></i>
<i class="bi-chevron-right slider-btn" ref="weekRight" @click="isRTL ? weekMoveLeft() : weekMoveRight()"></i>
</div>

<div v-show="showCustomList && showCalendar" class="main-horizontal-divider" id="resizer"
Expand All @@ -39,6 +40,7 @@
'full-screen': !showCalendar,
'flex-grow-1': showCalendar,
'hidden-lists-container': hideBottomListContainer,
'rtl': isRTL,
}">
<i class="bi-chevron-left slider-btn" @click="customMoveLeft" :style="{
visibility: cTodoList.length > customColumns ? 'visible' : 'hidden',
Expand Down Expand Up @@ -611,7 +613,9 @@ body {
margin-bottom: 25px;
// margin-bottom: 5px;
}

.todo-lists-container.rtl {
flex-direction: row-reverse;
}
.slider-btn {
padding: 3px;
font-size: 2rem;
Expand Down