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

Update rte autocomplete styling #10503

Merged
merged 3 commits into from
Apr 4, 2023
Merged
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
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