gavtaylor / hoveractions
Outlook-style hover actions for Roundcube's Elastic message list: the date moves to the subject line and flag/unflag and delete go on the line above
Package info
github.com/gavtaylor/roundcube-hoveractions
Language:JavaScript
Type:roundcube-plugin
pkg:composer/gavtaylor/hoveractions
Requires
- php: >=8.1.0
- roundcube/plugin-installer: ~0.3.5
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A Roundcube plugin that gives the Elastic skin's message list Outlook-style hover actions. Core's hover menu sits on top of each row's date; this keeps the date visible and puts the actions on the line above it:
- the date moves to the subject line (the right-hand end of the second line), and stays there whether or not the row is hovered;
- flag / unflag and delete / undo appear together on the first line, at the right, with delete in the far-right slot where the row's own flag icon sits;
- the row's attachment icon stays where it is and is never covered.
The menu has no box or shadow. Its icons use the same glyph treatment and colour as the attachment icon, so they stay subtle (muted, and red or grey on flagged and deleted rows in dark mode).
This project was built using agentic AI development (Claude Code). Review it accordingly before you install it.
Status
Prototyped by injecting the plugin's script and stylesheet into a live Roundcube 1.7.6 (Elastic skin, IMAP server without threading) and driving it in a browser. The checks:
- Layout: the date stays on line 2, with flag/unflag and delete on line 1 and the attachment icon undisturbed. This was checked in light and dark mode at 1400px and 1100px wide before the icons moved to line 1, and in dark mode at 1400px afterwards. With the list sorted by size, the size takes the date's place.
- Actions: flag, unflag and delete worked from the hover menu on real
messages, and the menu came back correctly on the next row. After the icons
moved to line 1, flag and unflag were re-checked; delete was not clicked
again. Undo (a
flag_for_deletionsetup) was only checked for position; this server moves deleted messages to the trash, so it never shows. - Hover state: the hovered row's class is cleared whenever core hides the menu (pointer leaves the list, a button is clicked).
- Touch / phone layouts: unchanged, with no hover menu (checked at 375px).
Not tested: threaded lists (the server doesn't support them), skins that extend Elastic, and anything before Roundcube 1.7.
Install
cd /path/to/roundcube
composer require gavtaylor/hoveractions
Add hoveractions to $config['plugins']. There is no configuration.
Notes
- Desktop only. Elastic treats viewports 1024px wide or narrower, and touch devices, as touch layouts. They get no hover menu, so this plugin leaves them alone.
- The size text is gone. Core's hover menu shows the message size; this layout has no room for it. It still shows in the list when sorted by size.
- The flag icon steps aside on hover. The menu's delete button covers the row's own flag slot, so on a flagged row the flag icon moves one slot left while the row is hovered. The sender's ellipsis also stops a little earlier on the hovered row to leave room for the icons.
- It restyles, it doesn't rebuild. The plugin moves core's own buttons into
one group and positions it over the first line of the row, so flagging,
deleting and the buttons' state handling are still core's. It listens to the
client-side
skin-message-list-hover-menu-initandskin-message-list-hover-menuevents. - Keyboard access is unchanged. Core's hover menu is mouse-only (its
buttons have no
hrefand aren't focusable); the toolbar and keyboard shortcuts remain the keyboard route.