(core) Remove code related to newui

Summary: Change code that conditionally depended on #newui in the URL to assume that everything is always in the new UI now.

Test Plan: this

Reviewers: dsagal

Reviewed By: dsagal

Subscribers: dsagal

Differential Revision: https://phab.getgrist.com/D3246
This commit is contained in:
Alex Hall
2022-02-04 12:21:43 +02:00
parent 5d671bf0b3
commit ec7bc9bef3
11 changed files with 15 additions and 82 deletions

View File

@@ -431,7 +431,7 @@ function getPlotlyLayout(options: ChartOptions): Partial<Layout> {
export class ChartConfig extends GrainJSDisposable {
// helper to build the draggable field list
private _configFieldsHelper = VisibleFieldsConfig.create(this, this._gristDoc, this._section, true);
private _configFieldsHelper = VisibleFieldsConfig.create(this, this._gristDoc, this._section);
// The index for the x-axis in the list visible fields. Could be eigther 0 or 1 depending on
// whether multiseries is set.

View File

@@ -114,12 +114,8 @@
}
.grist-single-record__menu {
padding: .2rem .5rem .2rem 0;
align-items: center;
flex-shrink: 0;
}
.grist-single-record__menu.newui {
padding: 0;
margin-top: -4px;
}

View File

@@ -331,7 +331,6 @@ DetailView.prototype.buildTitleControls = function() {
kd.maybe(this.recordLayout.layoutEditor, (editor) => editor.buildEditorDom()),
kd.maybe(showControls, () => dom('div.grist-single-record__menu.flexhbox.flexnone',
this.gristDoc.app.addNewUIClass(),
dom('div.grist-single-record__menu__count.flexitem',
// Total should not include the add record row
kd.text(() => this._isAddRow() ? 'Add record' :

View File

@@ -10,10 +10,6 @@
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
--gridview-header-height: 2.2rem;
}
.gridview_data_pane.newui {
--gridview-header-height: 24px;
}
@@ -28,7 +24,7 @@
border-top: 1px solid lightgrey;
}
.gridview_data_pane.newui > .gridview_data_scroll {
.gridview_data_pane > .gridview_data_scroll {
border-top: none;
}
@@ -253,12 +249,12 @@
z-index: 1;
}
.gridview_data_pane.newui > .scroll_shadow_top {
.gridview_data_pane > .scroll_shadow_top {
top: var(--gridview-header-height);
}
.gridview_data_pane.newui > .gridview_data_corner_overlay,
.gridview_data_pane.newui > .gridview_header_backdrop_top {
.gridview_data_pane > .gridview_data_corner_overlay,
.gridview_data_pane > .gridview_header_backdrop_top {
top: 0px;
}

View File

@@ -849,7 +849,6 @@ GridView.prototype.buildDom = function() {
return dom(
'div.gridview_data_pane.flexvbox',
this.gristDoc.app.addNewUIClass(),
// offset for frozen columns - how much move them to the left
kd.style('--frozen-offset', this.frozenOffset),
// total width of frozen columns