mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 17:41:51 +00:00
fix(planner): give day plan rows their full width until the controls are wanted
The hover controls took their room at rest, so a place's line and a note's text broke early. A place now gives way only while hovered, a note's controls fade in over the end of its text in the note's own colour, and a picked place shows none. All three controls of a place come out together: the add-booking ticket waited for a React hover state and came a beat late. A click no longer leaves them showing; keyboard focus and an open menu do.
This commit is contained in:
@@ -253,9 +253,9 @@ html.dark .bg-slate-50\/60, html.dark [class*="bg-slate-50/"] { background-color
|
||||
background: none !important;
|
||||
padding: 1px 2px;
|
||||
}
|
||||
/* Reveal on row hover (and on keyboard focus, so the buttons are reachable by Tab). */
|
||||
.dp-row:hover .reorder-buttons,
|
||||
.dp-row:focus-within .reorder-buttons {
|
||||
/* Reveal on row hover and on keyboard focus (Tab), not on the focus a click leaves on the row. */
|
||||
.dp-row:hover .reorder-buttons, .dp-row:focus-visible .reorder-buttons,
|
||||
.dp-row:has(:focus-visible) .reorder-buttons {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user