Skip to content
Snippets Groups Projects
Commit ea1f0181 authored by Ahmad Haghighi's avatar Ahmad Haghighi Committed by Annabel Dunstone Gray
Browse files

Add auto direction to support rtl languages

parent 700976d0
No related branches found
No related tags found
No related merge requests found
Showing
with 29 additions and 6 deletions
Loading
Loading
@@ -168,7 +168,7 @@ export default {
</script>
<template>
<div>
<div class="d-flex board-card-header">
<div class="d-flex board-card-header" dir="auto">
<h4 class="board-card-title append-bottom-0 prepend-top-0">
<icon
v-if="issue.confidential"
Loading
Loading
Loading
Loading
@@ -108,6 +108,7 @@ export default {
:placeholder="placeholder"
:value="text"
class="note-textarea ide-commit-message-textarea"
dir="auto"
name="commit-message"
@scroll="handleScroll"
@input="onInput"
Loading
Loading
Loading
Loading
@@ -149,6 +149,7 @@ export default {
v-model="descriptionText"
:data-update-url="updateUrl"
class="hidden js-task-list-field"
dir="auto"
>
</textarea>
 
Loading
Loading
Loading
Loading
@@ -53,6 +53,7 @@ export default {
v-model="formState.description"
class="note-textarea js-gfm-input js-autosize markdown-area
qa-description-textarea"
dir="auto"
data-supports-quick-actions="false"
aria-label="Description"
placeholder="Write a comment or drag your files here…"
Loading
Loading
Loading
Loading
@@ -20,6 +20,7 @@ export default {
ref="input"
v-model="formState.title"
class="form-control qa-title-input"
dir="auto"
type="text"
placeholder="Title"
aria-label="Title"
Loading
Loading
Loading
Loading
@@ -72,6 +72,7 @@ export default {
'issue-realtime-trigger-pulse': pulseAnimation,
}"
class="title"
dir="auto"
v-html="titleHtml"
></h2>
<button
Loading
Loading
Loading
Loading
@@ -351,6 +351,7 @@ Please check your network connection and try again.`;
ref="textarea"
slot="textarea"
v-model="note"
dir="auto"
:disabled="isSubmitting"
name="note[note]"
class="note-textarea js-vue-comment-form js-note-text
Loading
Loading
Loading
Loading
@@ -122,6 +122,7 @@ export default {
v-model="note.note"
:data-update-url="note.path"
class="hidden js-task-list-field"
dir="auto"
></textarea>
<note-edited-text
v-if="note.last_edited_at"
Loading
Loading
Loading
Loading
@@ -268,6 +268,7 @@ export default {
:data-supports-quick-actions="!isEditing"
name="note[note]"
class="note-textarea js-gfm-input js-note-text js-autosize markdown-area js-vue-issue-note-form js-vue-textarea qa-reply-input"
dir="auto"
aria-label="Description"
placeholder="Write a comment or drag your files here…"
@keydown.meta.enter="handleKeySubmit()"
Loading
Loading
Loading
Loading
@@ -30,6 +30,7 @@ export default {
:id="inputId"
:value="value"
class="form-control js-gfm-input append-bottom-default commit-message-edit"
dir="auto"
required="required"
rows="7"
@input="$emit('input', $event.target.value)"
Loading
Loading
Loading
Loading
@@ -256,6 +256,10 @@
}
}
 
.board-card-header {
text-align: initial;
}
.board-card-assignee {
margin-top: -$gl-padding-4;
margin-bottom: -$gl-padding-4;
Loading
Loading
Loading
Loading
@@ -60,6 +60,7 @@
overflow-wrap: break-word;
min-width: 0;
width: 100%;
text-align: initial;
}
 
.btn-edit {
Loading
Loading
Loading
Loading
@@ -4,7 +4,7 @@ module BroadcastMessagesHelper
def broadcast_message(message)
return unless message.present?
 
content_tag :div, class: 'broadcast-message', style: broadcast_message_style(message) do
content_tag :div, dir: 'auto', class: 'broadcast-message', style: broadcast_message_style(message) do
icon('bullhorn') << ' ' << render_broadcast_message(message)
end
end
Loading
Loading
Loading
Loading
@@ -14,6 +14,7 @@
.col-sm-10
= f.text_area :message, class: "form-control js-autosize",
required: true,
dir: 'auto',
data: { preview_path: preview_admin_broadcast_messages_path }
.form-group.row.js-toggle-colors-container
.col-sm-10.offset-sm-2
Loading
Loading
Loading
Loading
@@ -11,7 +11,8 @@
= link_to [event.project.namespace.becomes(Namespace), event.project, event.target], class: 'has-tooltip event-target-link append-right-4', title: event.target_title do
= event.target.reference_link_text
- unless event.milestone?
%span.event-target-title.append-right-4= "&quot;".html_safe + event.target.title + "&quot".html_safe
%span.event-target-title.append-right-4{ dir: "auto" }
= "&quot;".html_safe + event.target.title + "&quot".html_safe
- else
%span.event-type.d-inline-block.append-right-4{ class: event.action_name }
= event_action_name(event)
Loading
Loading
Loading
Loading
@@ -7,7 +7,8 @@
%span.event-type.d-inline-block.append-right-4{ class: event.action_name }
= event.action_name
= event_note_title_html(event)
%span.event-target-title.append-right-4= "&quot;".html_safe + event.target.title + "&quot".html_safe
%span.event-target-title.append-right-4{ dir: "auto" }
= "&quot;".html_safe + event.target.title + "&quot".html_safe
 
= render "events/event_scope", event: event
 
Loading
Loading
Loading
Loading
@@ -8,6 +8,7 @@
= f.text_area attr,
class: classes,
placeholder: placeholder,
dir: 'auto',
data: { supports_quick_actions: supports_quick_actions,
supports_autocomplete: supports_autocomplete }
- else
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
.issuable-info-container
.issuable-main-info
.issue-title.title
%span.issue-title-text
%span.issue-title-text{ dir: "auto" }
- if issue.confidential?
%span.has-tooltip{ title: _('Confidential') }
= confidential_icon(issue)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
 
%div{ class: div_class }
= form.text_field :title, required: true, maxlength: 255, autofocus: true,
autocomplete: 'off', class: 'form-control pad qa-issuable-form-title', placeholder: _('Title')
autocomplete: 'off', class: 'form-control pad qa-issuable-form-title', placeholder: _('Title'), dir: 'auto'
 
- if issuable.respond_to?(:work_in_progress?)
.form-text.text-muted
Loading
Loading
---
title: Add auto direction for issue title
merge_request: 27378
author: Ahmad Haghighi
type: fixed
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment