mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Always show input when editing text by removing hover (#15034)
This commit is contained in:
@@ -688,6 +688,7 @@ export default Component.extend(ComposerUpload, {
|
|||||||
|
|
||||||
imageResize.removeAttribute("hidden");
|
imageResize.removeAttribute("hidden");
|
||||||
readonlyContainer.removeAttribute("hidden");
|
readonlyContainer.removeAttribute("hidden");
|
||||||
|
buttonWrapper.removeAttribute("editing");
|
||||||
editContainer.setAttribute("hidden", "true");
|
editContainer.setAttribute("hidden", "true");
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -743,6 +744,7 @@ export default Component.extend(ComposerUpload, {
|
|||||||
);
|
);
|
||||||
const editContainerInput = editContainer.querySelector(".alt-text-input");
|
const editContainerInput = editContainer.querySelector(".alt-text-input");
|
||||||
|
|
||||||
|
buttonWrapper.setAttribute("editing", "true");
|
||||||
imageResize.setAttribute("hidden", "true");
|
imageResize.setAttribute("hidden", "true");
|
||||||
readonlyContainer.setAttribute("hidden", "true");
|
readonlyContainer.setAttribute("hidden", "true");
|
||||||
editContainerInput.value = altText.textContent;
|
editContainerInput.value = altText.textContent;
|
||||||
|
|||||||
@@ -195,6 +195,10 @@
|
|||||||
z-index: 1; // needs to be higher than image
|
z-index: 1; // needs to be higher than image
|
||||||
background: var(--secondary); // for when images are wider than controls
|
background: var(--secondary); // for when images are wider than controls
|
||||||
|
|
||||||
|
&[editing] {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
.scale-btn-container,
|
.scale-btn-container,
|
||||||
.alt-text-readonly-container,
|
.alt-text-readonly-container,
|
||||||
.alt-text-edit-container {
|
.alt-text-edit-container {
|
||||||
|
|||||||
Reference in New Issue
Block a user