mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Context menu for cards.
Summary: User was not able to delete cards. This patch introduces a context menu for cards, analogous to the one available for rows on a GridView. Changes: - Row numbers on a GridView have the same icon as on columns to make context menu more discoverable. - Context menu for rows and columns, when activated, didn't switch section in rare conditions (i.e. when the section had 2 or more columns selected, one of which had the same rowId as a column in the section that the user switched from). - Card list layout and a single card layout has the same context menu as in a GridView, available by pressing the context menu button. Test Plan: Browser tests Reviewers: dsagal, paulfitz Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2870
This commit is contained in:
@@ -83,6 +83,21 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Menu toggle on a row */
|
||||
.gridview_data_row_num .menu_toggle {
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
/* Show on hover or when menu is opened */
|
||||
.gridview_data_row_num:hover .menu_toggle,
|
||||
.gridview_data_row_num .menu_toggle.weasel-popup-open {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
|
||||
@media print {
|
||||
/* For printing, !important tag is needed for background colors to be respected; but normally,
|
||||
* do not want !important, as it interferes with row selection.
|
||||
@@ -339,8 +354,8 @@
|
||||
|
||||
.g-column-main-menu {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
top: 3px;
|
||||
right: 2px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user