diff --git a/src/RoomButton.jsx b/src/RoomButton.jsx
index ee678bb..a89b2da 100644
--- a/src/RoomButton.jsx
+++ b/src/RoomButton.jsx
@@ -137,6 +137,7 @@ export function HeaderButton({ on, className, children, ...rest }) {
export function SettingsButton(props) {
return (
+ Show Dev Tools
);
@@ -145,6 +146,7 @@ export function SettingsButton(props) {
export function LayoutToggleButton({ layout, ...rest }) {
return (
+ Layout Type
{layout === "spotlight" ? (
) : (
@@ -154,6 +156,10 @@ export function LayoutToggleButton({ layout, ...rest }) {
);
}
-export function ButtonTooltip({ children }) {
- return {children}
;
+export function ButtonTooltip({ className, children }) {
+ return (
+
+ {children}
+
+ );
}
diff --git a/src/RoomButton.module.css b/src/RoomButton.module.css
index 15818db..49ac089 100644
--- a/src/RoomButton.module.css
+++ b/src/RoomButton.module.css
@@ -123,7 +123,6 @@ limitations under the License.
display: none;
background-color: var(--bgColor2);
position: absolute;
- bottom: calc(100% + 6px);
flex-direction: row;
justify-content: center;
align-items: center;
@@ -132,8 +131,19 @@ limitations under the License.
border-radius: 8px;
max-width: 135px;
width: max-content;
+ z-index: 1;
+}
+
+.buttonTooltip.bottomRight {
+ right: 0;
}
.roomButton:hover .buttonTooltip {
display: flex;
+ bottom: calc(100% + 6px);
+}
+
+.headerButton:hover .buttonTooltip {
+ display: flex;
+ top: calc(100% + 6px);
}