Skip to content

Commit

Permalink
fix: re-added missing tooltipFontSize configuration option
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderpoot committed Aug 28, 2024
1 parent c74343f commit d6fd603
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/webdelta.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
window.webDeltaConfig = {
tooltipBorderRadius: "5px",
tooltipFont: "Menlo, monospaced",
tooltipFontSize: "15px",
tooltipXOffset: 15,
tooltipYOffset: 15,
timeZone: "UTC",
Expand Down Expand Up @@ -99,6 +100,7 @@ document.addEventListener("DOMContentLoaded", function() {
tooltip.style.color = window.webDeltaConfig.tooltipForegroundColor || "white";
tooltip.style.borderRadius = window.webDeltaConfig.tooltipBorderRadius || "5px";
tooltip.style.fontFamily = window.webDeltaConfig.tooltipFont || "Arial, sans-serif";
tooltip.style.fontSize = window.webDeltaConfig.tooltipFontSize || "15px";
tooltip.style.whiteSpace = "nowrap";
tooltip.style.visibility = "hidden";
tooltip.style.opacity = "0";
Expand Down
2 changes: 1 addition & 1 deletion dist/webdelta.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/webdelta.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
window.webDeltaConfig = {
tooltipBorderRadius: '5px',
tooltipFont: 'Menlo, monospaced',
tooltipFontSize: '15px',
tooltipXOffset: 15,
tooltipYOffset: 15,
timeZone: 'UTC',
Expand Down Expand Up @@ -132,6 +133,7 @@ document.addEventListener("DOMContentLoaded", function () {
tooltip.style.color = window.webDeltaConfig.tooltipForegroundColor || 'white';
tooltip.style.borderRadius = window.webDeltaConfig.tooltipBorderRadius || '5px';
tooltip.style.fontFamily = window.webDeltaConfig.tooltipFont || 'Arial, sans-serif';
tooltip.style.fontSize = window.webDeltaConfig.tooltipFontSize || '15px';
tooltip.style.whiteSpace = 'nowrap';
tooltip.style.visibility = 'hidden';
tooltip.style.opacity = '0';
Expand Down

0 comments on commit d6fd603

Please sign in to comment.