Skip to content

Commit

Permalink
fix(Composer): rtl support
Browse files Browse the repository at this point in the history
Signed-off-by: Hamza Mahjoubi <[email protected]>
  • Loading branch information
hamza221 committed Oct 28, 2024
1 parent 7694fb6 commit 35a3faf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/components/Composer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1579,6 +1579,10 @@ export default {
display: none;
}

:deep(.v-select.select){
left: 0 !important;
}

:deep(.vs__dropdown-menu){
padding: 0 !important;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/NewMessageModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -577,14 +577,14 @@ export default {
float: right;
position: absolute !important;
top: 4px;
right: 63px;
inset-inline-end: 63px;
}

.maximize-button {
float: right;
position: absolute !important;
top: 4px;
right: 33px;
inset-inline-end: 33px;

}
.empty-content{
Expand Down
7 changes: 3 additions & 4 deletions src/components/TextEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export default {
items: toolbar,
},
language: 'en',
content: 'en',
mention: {
feeds: [
{
Expand Down Expand Up @@ -292,10 +293,7 @@ export default {
try {
logger.debug(`loading ${language} translations for CKEditor`)
await import(
/* webpackMode: "lazy-once" */
/* webpackPrefetch: true */
/* webpackPreload: true */
`@ckeditor/ckeditor5-build-decoupled-document/build/translations/${language}`
`../../node_modules/@ckeditor/ckeditor5-build-decoupled-document/build/translations/${language}.js`
)
this.showEditor(language)
} catch (error) {
Expand All @@ -306,6 +304,7 @@ export default {
showEditor(language) {
logger.debug(`using "${language}" as CKEditor language`)
this.config.language = language
this.config.content = language

this.ready = true
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Thread.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<template v-else>
<div id="mail-thread-header">
<div id="mail-thread-header-fields">
<h2 :title="threadSubject">
<h2 dir="auto" :title="threadSubject">
{{ threadSubject }}
</h2>
<div v-if="thread.length" ref="avatarHeader" class="avatar-header">
Expand Down

0 comments on commit 35a3faf

Please sign in to comment.