mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) A few assorted one-line fixes
Summary: - Use newer flag in .npmrc to avoid warnings - Fix check in WidgetRepository, useful for development but was broken - Fix macSandboxExec for Macs that require libRosettaRuntime - Make sure row count in Raw Data listing is visible when it takes more space Test Plan: Tested manually Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3759
This commit is contained in:
parent
9e009bbab9
commit
e170eef1a4
@ -271,7 +271,7 @@ const cssTableIdWrapper = styled('div', `
|
|||||||
const cssTableRowsWrapper = styled('div', `
|
const cssTableRowsWrapper = styled('div', `
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
width: 80px;
|
min-width: 100px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
color: ${css.theme.lightText};
|
color: ${css.theme.lightText};
|
||||||
|
@ -736,6 +736,7 @@ function macSandboxExec(options: ISandboxOptions): SandboxProcess {
|
|||||||
// From another python installation variant.
|
// From another python installation variant.
|
||||||
profile.push(`(allow file-read* (subpath "/usr/lib/"))`);
|
profile.push(`(allow file-read* (subpath "/usr/lib/"))`);
|
||||||
profile.push(`(allow file-read* (subpath "/System/Library/Frameworks/"))`);
|
profile.push(`(allow file-read* (subpath "/System/Library/Frameworks/"))`);
|
||||||
|
profile.push(`(allow file-read* (subpath "/Library/Apple/usr/libexec/oah/"))`);
|
||||||
|
|
||||||
// Give access to Grist material.
|
// Give access to Grist material.
|
||||||
const cwd = path.join(process.cwd(), 'sandbox');
|
const cwd = path.join(process.cwd(), 'sandbox');
|
||||||
|
@ -69,7 +69,7 @@ class CachedWidgetRepository extends WidgetRepositoryImpl {
|
|||||||
private _cache = new LRUCache<1, ICustomWidget[]>({maxAge : 1000 * 60 /* minute */ * 2});
|
private _cache = new LRUCache<1, ICustomWidget[]>({maxAge : 1000 * 60 /* minute */ * 2});
|
||||||
public async getWidgets() {
|
public async getWidgets() {
|
||||||
// Don't cache for localhost
|
// Don't cache for localhost
|
||||||
if (super._staticUrl && super._staticUrl.startsWith("http://localhost")) {
|
if (this._staticUrl && this._staticUrl.startsWith("http://localhost")) {
|
||||||
this._cache.reset();
|
this._cache.reset();
|
||||||
}
|
}
|
||||||
if (this._cache.has(1)) {
|
if (this._cache.has(1)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user