(core) Better UX in full-edit mode for the formula editor

Summary:
Improving UX for the formula editor
- Formula editor will go into full edit mode only on formula change (not on a mouse click)
- Adding column highlight and a tooltip when in full edit mode

Test Plan: nbrowser tests

Reviewers: cyprien

Reviewed By: cyprien

Differential Revision: https://phab.getgrist.com/D3194
This commit is contained in:
Jarosław Sadziński
2021-12-22 15:28:27 +01:00
parent e99cc3ae08
commit 0482c83771
5 changed files with 99 additions and 13 deletions

View File

@@ -42,7 +42,6 @@
}
.gridview_data_header {
border-bottom: 1px solid lightgray;
position:relative;
}
@@ -52,8 +51,9 @@
}
.field.column_name {
border-bottom: 1px solid lightgray;
line-height: var(--gridview-header-height);
height: var(--gridview-header-height); /* Also should match height for overlay elements */
height: calc(var(--gridview-header-height) + 1px); /* Also should match height for overlay elements */
}
/* also .field.column_name, style set in viewCommon */
@@ -350,6 +350,24 @@
}
}
/* Column hover effect */
.gridview_row .field.hover-column, /* normal field in a row */
.gridview_row .field.frozen.hover-column, /* frozen field in a row */
.column_name.hover-column, /* column name */
.column_name.hover-column.selected /* selected column name */ {
/* for frozen fields can't use alpha channel */
background-color: var(--grist-color-selection-opaque);
}
/* For zebra stripes, make the selection little darker */
.record-zebra.record-even .field.hover-column {
background-color: var(--grist-color-selection-darker-opaque);
}
/* When column has a hover, remove menu button. */
.column_name.hover-column .menu_toggle {
visibility: hidden;
}
/* Etc */
.g-column-main-menu {