Flatten threads: minor improvements
- Scroll the reply box to the bottom, so the cursor is visible before
composing the reply.
- Always show the "more" button in quotes when the user can't hover the
quote box.
Bug: twpowertools:153
Change-Id: I26a03f3d3aaf8a278a7a641978dfd19274e4d356
diff --git a/src/contentScripts/communityConsole/flattenThreads/components/index.js b/src/contentScripts/communityConsole/flattenThreads/components/index.js
index 08f1d18..8060a07 100644
--- a/src/contentScripts/communityConsole/flattenThreads/components/index.js
+++ b/src/contentScripts/communityConsole/flattenThreads/components/index.js
@@ -74,8 +74,12 @@
transition: opacity .25s;
}
- .quote-container:not(:hover) .buttons-row:not(:has(md-tonal-button:focus)) {
- opacity: 0;
+ @media (hover: hover) {
+ @supports selector(:has(div)) {
+ .quote-container:not(:hover) .buttons-row:not(:has(md-tonal-button:focus)) {
+ opacity: 0;
+ }
+ }
}
.buttons-row md-tonal-button {