Skip to content

Commit

Permalink
fix decimal citations and enter on search bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
oshaikh13 committed Jun 6, 2020
1 parent 893f4ed commit d23f7e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/ResearcherDetailView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
selectedResearchInterest.subscribe((value) => {
if (value.length == 0) lockedInterest = "";
})
</script>

<style>
Expand Down Expand Up @@ -54,7 +55,7 @@
<p class="text is-size-5" style="color: #484848; text-align: center; margin-bottom: 0px;"> {$selectedResearcherInfo.affiliation} </p>

<p class="text is-size-6" style="color: #484848; text-align: center; margin-bottom: 20px">
<span class="light-font" >Citations:</span> {$selectedResearcherInfo.citations}
<span class="light-font" >Citations:</span> {parseInt($selectedResearcherInfo.citations)}
</p>

<p class="text is-size-6" style="color: #484848; text-align: left; margin-bottom: 0px; padding-left: 20%">
Expand Down
9 changes: 6 additions & 3 deletions src/components/StatsView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@
var handleKeydown = () => {
var key = event.key;
var keyCode = event.keyCode;
// debugger;
if (keyCode == 13) {
selectedResearchInterest.set(choices[0])
// debugger;
selectedResearchInterest.set(choices[0]["name"])
}
}
Expand Down Expand Up @@ -148,10 +150,11 @@


</nav>

<!-- on:mouseleave={() => {handleInterestSelect("")}} -->
<!-- on:mouseenter={() => {handleInterestSelect(choice["name"])}} -->
<div id="autocomplete-choices" style="visibility: hidden; top: 100px; left: 100px; z-index: 100; position: absolute; width: 300px; background: white;">
{#each choices as choice}
<a on:mouseenter={() => {handleInterestSelect(choice["name"])}} on:mousedown = {() => { handleInterestSelect(choice["name"])}} on:mouseleave={() => {handleInterestSelect("")}} class="panel-block">
<a class="panel-block" on:mousedown = {() => { handleInterestSelect(choice["name"])}}>
<span class="panel-icon">
<div>
<i class="fas {choice["type"] == "author" ? "fa-user-graduate" : "fa-book"}" aria-hidden="true"></i>
Expand Down

0 comments on commit d23f7e4

Please sign in to comment.