Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Update rte autocomplete styling (#10503)
Browse files Browse the repository at this point in the history
* amend className to reflect usage
* move new class into file used by Send/Edit composers
* add border styling to autocomplete
  • Loading branch information
artcodespace authored Apr 4, 2023
1 parent b77b2df commit 7a250f4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,3 @@ limitations under the License.
border-color: $quaternary-content;
}
}

.mx_SendWysiwygComposer_AutoCompleteWrapper {
position: relative;
> .mx_Autocomplete {
min-width: 100%;
}
}
13 changes: 13 additions & 0 deletions res/css/views/rooms/wysiwyg_composer/components/_Editor.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,16 @@ limitations under the License.
color: $tertiary-content;
}
}

.mx_WysiwygComposer_AutoCompleteWrapper {
position: relative;

/* Due to the fact that editing a message now has a larger amount of grey
colour above it (due to the rich text buttons above the composer), we need
to give the autocomplete a bit more visual separation by using a border.
*/
> .mx_Autocomplete {
border: 1px solid $quinary-content;
border-radius: 8px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const WysiwygAutocomplete = forwardRef(
}

return room ? (
<div className="mx_SendWysiwygComposer_AutoCompleteWrapper" data-testid="autocomplete-wrapper">
<div className="mx_WysiwygComposer_AutoCompleteWrapper" data-testid="autocomplete-wrapper">
<Autocomplete
ref={ref}
query={buildQuery(suggestion)}
Expand Down

0 comments on commit 7a250f4

Please sign in to comment.