Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions webapp/src/components/cardDetail/cardDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ const CardDetail = (props: Props): JSX.Element|null => {
onCancel={() => setTitle(props.card.title)}
readonly={props.readonly || !canEditBoardCards || limited}
spellCheck={true}
dir='auto'
/>

{/* Hidden (limited) card copy + CTA */}
Expand Down
1 change: 1 addition & 0 deletions webapp/src/components/kanban/kanban.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
.Editable {
color: rgba(var(--center-channel-color-rgb), 1);
background: transparent;
text-align: left;
}
}

Expand Down
1 change: 1 addition & 0 deletions webapp/src/components/kanban/kanbanCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const KanbanCard = (props: Props) => {
<div
key='__title'
className='octo-titletext'
dir='auto'
>
{card.title || intl.formatMessage({id: 'KanbanCard.untitled', defaultMessage: 'Untitled'})}
</div>
Expand Down
4 changes: 3 additions & 1 deletion webapp/src/components/markdownEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type Props = {
onEditorCancel?: () => void
autofocus?: boolean
saveOnEnter?: boolean
dir?: string
}

const MarkdownEditor = (props: Props): JSX.Element => {
Expand All @@ -46,6 +47,7 @@ const MarkdownEditor = (props: Props): JSX.Element => {
setIsEditing(true)
}
}}
dir='auto'
/>
)

Expand All @@ -70,7 +72,7 @@ const MarkdownEditor = (props: Props): JSX.Element => {
)

const element = (
<div className={`MarkdownEditor octo-editor ${props.className || ''} ${isEditing ? 'active' : ''}`}>
<div className={`MarkdownEditor octo-editor ${props.className || ''} ${isEditing ? 'active' : ''}`} dir='auto'>
{isEditing ? editorElement : previewElement}
</div>
)
Expand Down
2 changes: 2 additions & 0 deletions webapp/src/components/sidebar/sidebarBoardItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ const SidebarBoardItem = (props: Props) => {
<div
className='octo-sidebar-title'
title={title}
dir='auto'
>
{title}
</div>
Expand Down Expand Up @@ -315,6 +316,7 @@ const SidebarBoardItem = (props: Props) => {
<div
className='octo-sidebar-title'
title={view.title || intl.formatMessage({id: 'Sidebar.untitled-view', defaultMessage: '(Untitled View)'})}
dir='auto'
>
{view.title || intl.formatMessage({id: 'Sidebar.untitled-view', defaultMessage: '(Untitled View)'})}
</div>
Expand Down
1 change: 1 addition & 0 deletions webapp/src/components/sidebar/sidebarCategory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ const SidebarCategory = (props: Props) => {
title={props.categoryBoards.name}
onClick={toggleCollapse}
{...provided.dragHandleProps}
dir='auto'
>
{collapsed || snapshot.isDragging || props.forceCollapse ? <ChevronRight/> : <ChevronDown/>}
{props.categoryBoards.name}
Expand Down
1 change: 1 addition & 0 deletions webapp/src/components/table/tableGroupHeaderRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const TableGroupHeaderRow = (props: Props): JSX.Element => {
}}
readonly={props.readonly || !group.option.id}
spellCheck={true}
dir='auto'
/>
</Label>}
</div>
Expand Down
1 change: 1 addition & 0 deletions webapp/src/components/table/tableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ const TableRow = (props: Props) => {
onCancel={() => setTitle(card.title || '')}
readonly={props.readonly}
spellCheck={true}
dir='auto'
/>
</div>

Expand Down
2 changes: 1 addition & 1 deletion webapp/src/properties/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const SelectProperty = (props: PropertyProps) => {
onClick={() => setOpen(true)}
>
<Label color={displayValue ? propertyColorCssClassName : 'empty'}>
<span className='Label-text'>{finalDisplayValue}</span>
<span className='Label-text' dir='auto'>{finalDisplayValue}</span>
</Label>
</div>
)
Expand Down
1 change: 1 addition & 0 deletions webapp/src/properties/url/url.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const URLProperty = (props: PropertyProps): JSX.Element => {
const urlRegexp = /(((.+:(?:\/\/)?)?(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www\.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w\-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[.!/\\\w]*))?)/
return urlRegexp.test(value as string)
}}
dir='auto'
/>
</div>
)
Expand Down
2 changes: 2 additions & 0 deletions webapp/src/widgets/editable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export type EditableProps = {
onCancel?: () => void
onSave?: (saveType: 'onEnter'|'onEsc'|'onBlur') => void
onFocus?: () => void
dir?: string
}

export type Focusable = {
Expand Down Expand Up @@ -132,6 +133,7 @@ const Editable = (props: EditableProps, ref: React.Ref<Focusable>): JSX.Element
<input
{...elementProps}
ref={elementRef}
dir='auto'
/>
)
}
Expand Down
1 change: 1 addition & 0 deletions webapp/src/widgets/editableArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const EditableArea = (props: EditableProps, ref: React.Ref<Focusable>): JSX.Elem
{...heightProps}
ref={elementRef}
className={'EditableArea ' + elementProps.className}
dir='auto'
/>
<div className={'EditableAreaContainer'}>
<textarea
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/widgets/valueSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const ValueSelectorLabel = (props: LabelProps): JSX.Element => {
color={option.color}
className={className}
>
<span className='Label-text'>{option.value}</span>
<span className='Label-text' dir='auto'>{option.value}</span>
{onDeleteValue &&
<IconButton
onClick={() => onDeleteValue(option)}
Expand Down