From 492edd8702b2125adc9e4f0e1a9ffb2462f8a308 Mon Sep 17 00:00:00 2001 From: dinhanhtruong <70963346+dinhanhtruong@users.noreply.github.com> Date: Sat, 10 Jul 2021 17:06:13 -0400 Subject: Crude searchbox instantiation in linkpopup added SearchBox to linkpopup. No changes to searchbox css --- src/client/views/linking/LinkPopup.scss | 9 ++++++++- src/client/views/linking/LinkPopup.tsx | 17 +++++++++-------- 2 files changed, 17 insertions(+), 9 deletions(-) (limited to 'src/client') diff --git a/src/client/views/linking/LinkPopup.scss b/src/client/views/linking/LinkPopup.scss index 009a21bd6..519044e5e 100644 --- a/src/client/views/linking/LinkPopup.scss +++ b/src/client/views/linking/LinkPopup.scss @@ -1,3 +1,5 @@ +@import "../globalCssVariables"; + .linkPopup-container { background: white; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23); @@ -5,7 +7,7 @@ height: 200px; width: 200px; position: absolute; - padding: 10px; + padding: 15px; border-radius: 3px; input { @@ -37,4 +39,9 @@ margin: auto; } } + + + .searchBox-container { + background: pink; + } } \ No newline at end of file diff --git a/src/client/views/linking/LinkPopup.tsx b/src/client/views/linking/LinkPopup.tsx index 71db06f19..5c4640fdf 100644 --- a/src/client/views/linking/LinkPopup.tsx +++ b/src/client/views/linking/LinkPopup.tsx @@ -20,7 +20,7 @@ import './LinkPopup.scss'; import React = require("react"); import { CurrentUserUtils } from '../../util/CurrentUserUtils'; import { DefaultStyleProvider } from '../StyleProvider'; -import { Transform } from 'stream'; +import { Transform } from '../../util/Transform'; import { DocUtils } from '../../documents/Documents'; import { SearchBox } from '../search/SearchBox'; @@ -39,11 +39,13 @@ interface LinkPopupProps { @observer export class LinkPopup extends React.Component { + getPWidth = () => 500; + getPHeight = () => 500; + render() { const popupVisibility = this.props.showPopup ? "block" : "none"; return (
-
@@ -54,12 +56,11 @@ export class LinkPopup extends React.Component {

or

- + {/* + className="linkPopup-searchBox searchBox-input" /> */} - {/* - { select={returnTrue} setHeight={returnFalse} addDocument={undefined} - addDocTab={this.addDocTabFunc} + addDocTab={returnTrue} pinToPres={emptyFunction} rootSelected={returnTrue} styleProvider={DefaultStyleProvider} @@ -86,7 +87,7 @@ export class LinkPopup extends React.Component { docRangeFilters={returnEmptyFilter} searchFilterDocs={returnEmptyDoclist} ContainingCollectionView={undefined} - ContainingCollectionDoc={undefined} /> */} + ContainingCollectionDoc={undefined} />
); -- cgit v1.2.3-70-g09d2