(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:
Dmitry S 2022-12-19 12:44:57 -05:00
parent 9e009bbab9
commit e170eef1a4
3 changed files with 3 additions and 2 deletions

View File

@ -271,7 +271,7 @@ const cssTableIdWrapper = styled('div', `
const cssTableRowsWrapper = styled('div', `
display: flex;
flex-shrink: 0;
width: 80px;
min-width: 100px;
overflow: hidden;
align-items: baseline;
color: ${css.theme.lightText};

View File

@ -736,6 +736,7 @@ function macSandboxExec(options: ISandboxOptions): SandboxProcess {
// From another python installation variant.
profile.push(`(allow file-read* (subpath "/usr/lib/"))`);
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.
const cwd = path.join(process.cwd(), 'sandbox');

View File

@ -69,7 +69,7 @@ class CachedWidgetRepository extends WidgetRepositoryImpl {
private _cache = new LRUCache<1, ICustomWidget[]>({maxAge : 1000 * 60 /* minute */ * 2});
public async getWidgets() {
// Don't cache for localhost
if (super._staticUrl && super._staticUrl.startsWith("http://localhost")) {
if (this._staticUrl && this._staticUrl.startsWith("http://localhost")) {
this._cache.reset();
}
if (this._cache.has(1)) {