-
-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hotspots not showing text when hover #1239
Comments
There's nothing wrong with the configuration you've posted, so the issue must be something else on your page. I would guess that it's something CSS related, given that's how the tooltips are displayed. |
You're changing the font size in the context of the Pannellum .pnlm-container {
font-size: 16px;
} Typically, folks set the font size on |
The problem is that I have another .css loaded so add font-size to all of them make it works. Somehow the panorama 2F in my site doesn't fit the container, do you know why? /* Basic styling for the entire page */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
html {
scroll-behavior: smooth;
}
/* Link styling */
a {
text-decoration: none;
}
/* Styling for the panorama container */
#panorama1, #panorama2, #panorama3, #panorama4, #panorama5, #panorama6, #panorama7, #panorama8 {
width: 100%;
height: 500px; /* Adjust this height as per your needs */
background-color: #f9f9f9; /* Optional background while panorama loads */
font-size: 16px !important;
}
.hotspot {
font-size: 16px; /* Set the font size to 10px */
color: #000; /* Optional: Set the text color */
position: relative; /* Ensure it's positioned correctly within the panorama */
}
.floor-map {
display: flex;
flex-direction: column;
}
.floor {
cursor: pointer;
padding: 10px;
margin: 5px;
background-color: lightgray;
}
.floor.active {
background-color: lightblue;
}
.photo {
display: none;
}
.photo.active {
display: block;
} |
It seems to have 20-25px of top padding added to the panorama |
I don't know why my hotspots are not showing text when hover (especially info type). This is parts of my code, I've tried to make some changes in pannellum.js but it doesn't fix the problem.
The text was updated successfully, but these errors were encountered: