Skip to content

Commit 6e6640c

Browse files
committed
minor fixes
1 parent 31fb364 commit 6e6640c

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

vis/js/components/ModalButtons.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ const positionButtons = (tag) => {
119119
$("#modals").followTo(height, topPosition, leftOffset, 0);
120120
};
121121

122-
$(".close").click(function () {
122+
$(".close").click(function (event) {
123123
$("#modals").css(
124124
"top",
125-
$("#modals").position().top - $("#desktop-warning").outerHeight()
125+
$("#modals").position().top - $(event.target).parent().outerHeight()
126126
);
127127

128128
topPosition = $("#modals").position().top;

vis/js/default-config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ var config = {
551551
embed_button_title: "Embed this knowledge map on other websites",
552552
embed_button_text: 'Copy',
553553
copied_button_text: 'Copied',
554-
embed_title: 'embed map',
554+
embed_title: 'embed visualization',
555555
embed_body_text: 'You can use this code to embed the visualization on your own website or in a dashboard.',
556556
high_metadata_quality: "Data quality",
557557
high_metadata_quality_desc_base: "This knowledge map only includes documents with an abstract (min. 300 characters). High metadata quality significantly improves the quality of your knowledge map.",
@@ -633,7 +633,7 @@ var config = {
633633
embed_button_title: "Embed this knowledge map on other websites",
634634
embed_button_text: 'Copy',
635635
copied_button_text: 'Copied',
636-
embed_title: 'embed map',
636+
embed_title: 'embed visualization',
637637
embed_body_text: 'You can use this code to embed the visualization on your own website or in a dashboard.',
638638
link: 'link',
639639
tweets_count_label: " tweets",
@@ -940,7 +940,7 @@ var config = {
940940
embed_button_title: "Embed this knowledge map on other websites",
941941
embed_button_text: 'Copy',
942942
copied_button_text: 'Copied',
943-
embed_title: 'embed map',
943+
embed_title: 'embed visualization',
944944
embed_body_text: 'You can use this code to embed the visualization on your own website or in a dashboard.',
945945
area_streamgraph: "Stream",
946946
stream_year: "Year",

vis/js/templates/paper/Icons.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Icons = ({ paper, iconClasses }) => {
2121
</p>
2222
)}
2323
{doctypeIcons.map((icon) => (
24-
<p className={"dataset-icon " + iconClasses}>
24+
<p key={icon} className={"dataset-icon " + iconClasses}>
2525
<i className={icon}></i>
2626
</p>
2727
))}

0 commit comments

Comments
 (0)