cleanup: remove debug dots

This commit is contained in:
Evan Carroll 2026-01-26 18:43:38 -06:00
parent 66368fe274
commit 912ceb7646
2 changed files with 3 additions and 36 deletions

View file

@ -590,29 +590,6 @@ pub fn RealmSceneViewer(
</div> </div>
<div class="labels-container absolute inset-0" style="z-index: 3; pointer-events: none; overflow: visible;"> <div class="labels-container absolute inset-0" style="z-index: 3; pointer-events: none; overflow: visible;">
<Show when=move || scales_ready.get() fallback=|| ()> <Show when=move || scales_ready.get() fallback=|| ()>
// Debug dots at avatar bounds center
{move || {
members_by_key.get().into_iter().map(|(_, (_, m))| {
let user_id = m.member.user_id;
let dot_style = Memo::new(move |_| {
let bounds = avatar_bounds_store.get();
if let Some(ab) = bounds.get(&user_id) {
format!(
"position: absolute; left: {}px; top: {}px; \
width: 5px; height: 5px; background: red; \
border-radius: 50%; transform: translate(-50%, -50%); \
z-index: 99997;",
ab.content_center_x, ab.content_center_y
)
} else {
"display: none;".to_string()
}
});
view! {
<div style=dot_style data-debug="bounds-center" data-user-id=user_id.to_string() />
}
}).collect_view()
}}
// Active members // Active members
{move || { {move || {
members_by_key.get().into_iter().map(|(_, (_, m))| { members_by_key.get().into_iter().map(|(_, (_, m))| {

View file

@ -32,10 +32,9 @@ pub fn SpeechBubble(
#[prop(default = 1.0.into())] #[prop(default = 1.0.into())]
text_em_size: Signal<f64>, text_em_size: Signal<f64>,
) -> impl IntoView { ) -> impl IntoView {
let message = bubble.message.clone(); let content = bubble.message.content.clone();
let content = message.content.clone(); let emotion = bubble.message.emotion.clone();
let emotion = message.emotion.clone(); let is_whisper = bubble.message.is_whisper;
let is_whisper = message.is_whisper;
let expires_at = bubble.expires_at; let expires_at = bubble.expires_at;
let (bg_color, border_color, text_color) = emotion_bubble_colors(&emotion); let (bg_color, border_color, text_color) = emotion_bubble_colors(&emotion);
@ -149,7 +148,6 @@ pub fn SpeechBubble(
let m_left = measured_left.get(); let m_left = measured_left.get();
let m_width = measured_width.get(); let m_width = measured_width.get();
let m_top = measured_top.get(); let m_top = measured_top.get();
let position = measured_position.get();
// Before measurement: position at left=0 so bubble can expand to full width // Before measurement: position at left=0 so bubble can expand to full width
// After measurement: use calculated positions directly (no transforms) // After measurement: use calculated positions directly (no transforms)
@ -170,11 +168,6 @@ pub fn SpeechBubble(
50.0 50.0
}; };
let transform_origin = match position {
BubblePosition::Above => format!("{}% 100%", tail_offset),
BubblePosition::Below => format!("{}% 0%", tail_offset),
};
// Start invisible until measured (prevents flash) // Start invisible until measured (prevents flash)
let opacity = if measured { 1.0 } else { 0.0 }; let opacity = if measured { 1.0 } else { 0.0 };
@ -182,8 +175,6 @@ pub fn SpeechBubble(
"position: absolute; \ "position: absolute; \
left: {}px; \ left: {}px; \
top: {}px; \ top: {}px; \
transform: none; \
transform-origin: {}; \
width: fit-content; \ width: fit-content; \
max-width: {}px; \ max-width: {}px; \
opacity: {}; \ opacity: {}; \
@ -198,7 +189,6 @@ pub fn SpeechBubble(
z-index: 99999;", z-index: 99999;",
final_left, final_left,
final_top, final_top,
transform_origin,
max_width, max_width,
opacity, opacity,
bg_color, bg_color,