Skip to content

Commit 2af4179

Browse files
committed
Add some min/max CSS tags to tooltip div
1 parent ad16487 commit 2af4179

File tree

1 file changed

+1
-1
lines changed
  • python-wrapper/src/neo4j_viz

1 file changed

+1
-1
lines changed

python-wrapper/src/neo4j_viz/nvl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def render(
6060
full_code = self.library_code + js_code
6161
html_output = f"""
6262
<div id="{container_id}" style="width: {width}; height: {height}; position: relative;">
63-
<div id="{container_id}-tooltip" style="width: 20%; max-height: 90%; position: absolute; z-index: 2147483647; right: 0; bottom: 0; background: white; display: none; border: solid; border-color: #BBBEC3; border-width: 0.5px; padding: 0.8rem; border-radius: 8px; margin-bottom: 1rem; margin-right: 0.5rem; filter: drop-shadow(0 4px 8px rgba(26,27,29,0.12)); font-family: PublicSans; color: #4D5157; font-size: 14px"></div>
63+
<div id="{container_id}-tooltip" style="width: 20%; min-width: 100px; max-width: 600px; max-height: 80%; position: absolute; z-index: 2147483647; right: 0; bottom: 0; background: white; display: none; border: solid; border-color: #BBBEC3; border-width: 0.5px; padding: 0.8rem; border-radius: 8px; margin-bottom: 1rem; margin-right: 0.5rem; filter: drop-shadow(0 4px 8px rgba(26,27,29,0.12)); font-family: PublicSans; color: #4D5157; font-size: 14px"></div>
6464
</div>
6565
<script>
6666
{full_code}

0 commit comments

Comments
 (0)