FIX: AI Helper UX bugs (#223)
This commit is contained in:
parent
cdd6faa648
commit
cf6a6ed9b8
|
@ -121,7 +121,7 @@ export default class AiHelperContextMenu extends Component {
|
||||||
)
|
)
|
||||||
: "";
|
: "";
|
||||||
|
|
||||||
if (this.selectedText.length === 0) {
|
if (this.selectedText?.length === 0) {
|
||||||
this.closeContextMenu();
|
this.closeContextMenu();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,11 +206,18 @@
|
||||||
|
|
||||||
// Suggest Titles Related
|
// Suggest Titles Related
|
||||||
.suggest-titles-button {
|
.suggest-titles-button {
|
||||||
position: absolute;
|
display: block;
|
||||||
top: 1px;
|
align-self: baseline;
|
||||||
right: 1px;
|
|
||||||
background: var(--secondary);
|
background: var(--secondary);
|
||||||
border: none;
|
border: 1px solid var(--primary-medium);
|
||||||
|
border-left: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-input:has(.suggestion-button) {
|
||||||
|
// border on focus should be on top of suggestion button
|
||||||
|
input:focus {
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.suggestion-button {
|
.suggestion-button {
|
||||||
|
@ -249,6 +256,21 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Prevent suggestion button from wrapping on smaller screens
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
#reply-control {
|
||||||
|
.category-input:has(.suggestion-button) {
|
||||||
|
.category-chooser {
|
||||||
|
width: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ .mini-tag-chooser {
|
||||||
|
width: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.suggest-tags-button + .ai-suggestions-menu {
|
.suggest-tags-button + .ai-suggestions-menu {
|
||||||
top: 4.25rem;
|
top: 4.25rem;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue