diff options
author | monikahedman <monika_hedman@brown.edu> | 2019-08-27 19:06:03 -0400 |
---|---|---|
committer | monikahedman <monika_hedman@brown.edu> | 2019-08-27 19:06:03 -0400 |
commit | 7641b0bc801bb135e4b710a60a50ff1d08b49f1c (patch) | |
tree | 940fe0f9c3fe690693fb6089dbf7ab573dcebda6 /src | |
parent | f204675b5b952fd9fdf301c41d702cfe1f5633e3 (diff) |
TAB IS NOT WORKING
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/linking/LinkFollowBox.scss | 18 | ||||
-rw-r--r-- | src/client/views/linking/LinkFollowBox.tsx | 10 |
2 files changed, 5 insertions, 23 deletions
diff --git a/src/client/views/linking/LinkFollowBox.scss b/src/client/views/linking/LinkFollowBox.scss index e425bde69..9eeed1cc8 100644 --- a/src/client/views/linking/LinkFollowBox.scss +++ b/src/client/views/linking/LinkFollowBox.scss @@ -8,14 +8,11 @@ box-shadow: $intermediate-color 0.2vw 0.2vw 0.4vw; border: solid #BBBBBBBB 5px; pointer-events: all; - // transform-origin: top right; - // overflow: hidden; .linkFollowBox-header { height: 50px; text-align: center; text-transform: uppercase; - // line-height: 30px; letter-spacing: 2px; font-size: 16px; width: 100%; @@ -27,12 +24,10 @@ .closeDocument { position: relative; - // z-index: inherit; max-width: 30px; top: -20px; - // left: 230px; left: 460px; - color: $darker-alt-accent // right: 5px; + color: $darker-alt-accent } .closeDocument:hover { @@ -40,10 +35,7 @@ } .topHeader { - // display: grid; - // grid-template-columns: 90% 10%; width: 100%; - // flex-direction: row; height: 25px; } @@ -56,9 +48,7 @@ button { background-color: $darker-alt-accent; - // height: 30px; width: 30%; - // font-size: 18px; } } @@ -77,15 +67,10 @@ .linkFollowBox-itemContent { padding: 5px; font-size: 12px; - // line-height: 40px; overflow: scroll; - input[type=radio] { border: 0px; - // width: 100%; - // height: 20px; - // width: 20px; margin-right: 5px; } } @@ -105,5 +90,4 @@ } } } - }
\ No newline at end of file diff --git a/src/client/views/linking/LinkFollowBox.tsx b/src/client/views/linking/LinkFollowBox.tsx index 588f48017..54670e2c7 100644 --- a/src/client/views/linking/LinkFollowBox.tsx +++ b/src/client/views/linking/LinkFollowBox.tsx @@ -58,14 +58,10 @@ export class LinkFollowBox extends React.Component<FieldViewProps> { constructor(props: FieldViewProps) { super(props); LinkFollowBox.Instance = this; + this.resetVars(); this.props.Document.isBackground = true; } - @computed - get getDoc() { - return this.props.Document; - } - componentDidMount = () => { this.resetVars(); @@ -270,7 +266,9 @@ export class LinkFollowBox extends React.Component<FieldViewProps> { openLinkTab = () => { if (LinkFollowBox.destinationDoc) { let fullScreenAlias = Doc.MakeAlias(LinkFollowBox.destinationDoc); + // THIS IS EMPTY FUNCTION this.props.addDocTab(fullScreenAlias, undefined, "inTab"); + console.log(this.props.addDocTab) this.highlightDoc(); SelectionManager.DeselectAll(); @@ -323,7 +321,7 @@ export class LinkFollowBox extends React.Component<FieldViewProps> { } //set this to be the default link behavior, can be any of the above - public defaultLinkBehavior: (options?: any) => void = this.openLinkRight; + public defaultLinkBehavior: (options?: any) => void = this.openLinkTab; @action currentLinkBehavior = () => { |