mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-06 17:30:20 +00:00
UX: show image caption button on image hover (#670)
This commit is contained in:
parent
8849caf136
commit
59ed6d7b3e
@ -482,17 +482,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// AI Image Caption Feature:
|
// AI Image Caption Feature:
|
||||||
.image-wrapper .button-wrapper {
|
.image-wrapper {
|
||||||
|
.button-wrapper {
|
||||||
.generate-caption {
|
.generate-caption {
|
||||||
background: var(--tertiary-low);
|
background: var(--tertiary-low);
|
||||||
color: var(--tertiary);
|
color: var(--tertiary);
|
||||||
box-shadow: var(--shadow-dropdown);
|
box-shadow: var(--shadow-dropdown);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
top: -3.15rem;
|
top: -2rem;
|
||||||
left: 0.75rem;
|
left: 0.35rem;
|
||||||
padding: 0.5em 0.75em;
|
padding: 0.33em 0.75em;
|
||||||
transition: all 0.25s ease;
|
transition: all 0.25s ease;
|
||||||
|
.discourse-no-touch & {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.d-icon {
|
.d-icon {
|
||||||
margin-right: 0.25rem;
|
margin-right: 0.25rem;
|
||||||
@ -516,6 +520,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.discourse-no-touch & {
|
||||||
|
&:hover {
|
||||||
|
.button-wrapper .generate-caption {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.ai-caption-popup {
|
.ai-caption-popup {
|
||||||
--ai-caption-popup-min-width: 20rem;
|
--ai-caption-popup-min-width: 20rem;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user