aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/TemplateMenu.tsx2
-rw-r--r--src/client/views/collections/CollectionView.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/TemplateMenu.tsx b/src/client/views/TemplateMenu.tsx
index 3fb330840..f2fb26679 100644
--- a/src/client/views/TemplateMenu.tsx
+++ b/src/client/views/TemplateMenu.tsx
@@ -161,7 +161,7 @@ export class TemplateMenu extends React.Component<TemplateMenuProps> {
);
}
return <ul className="template-list" style={{ display: "block" }}>
- <input placeholder="+ layout" ref={this._customRef} onKeyPress={this.onCustomKeypress}></input>
+ <input placeholder="+ layout" ref={this._customRef} onKeyPress={this.onCustomKeypress}/>
{templateMenu}
</ul>;
}
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx
index 23d701ffd..c4f9e873c 100644
--- a/src/client/views/collections/CollectionView.tsx
+++ b/src/client/views/collections/CollectionView.tsx
@@ -282,7 +282,7 @@ export class CollectionView extends Touchable<FieldViewProps> {
bodyPanelWidth = () => this.props.PanelWidth() - this.facetWidth();
getTransform = () => this.props.ScreenToLocalTransform().translate(-this.facetWidth(), 0);
- facetWidth = () => Math.min(this.props.PanelWidth() - 25, this._facetWidth);
+ facetWidth = () => Math.max(0, Math.min(this.props.PanelWidth() - 25, this._facetWidth));
@computed get dataDoc() {
return (this.props.DataDoc && this.props.Document.isTemplateForField ? Doc.GetProto(this.props.DataDoc) :