cleanup: remove debug dots
This commit is contained in:
parent
66368fe274
commit
912ceb7646
2 changed files with 3 additions and 36 deletions
|
|
@ -590,29 +590,6 @@ pub fn RealmSceneViewer(
|
|||
</div>
|
||||
<div class="labels-container absolute inset-0" style="z-index: 3; pointer-events: none; overflow: visible;">
|
||||
<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
|
||||
{move || {
|
||||
members_by_key.get().into_iter().map(|(_, (_, m))| {
|
||||
|
|
|
|||
|
|
@ -32,10 +32,9 @@ pub fn SpeechBubble(
|
|||
#[prop(default = 1.0.into())]
|
||||
text_em_size: Signal<f64>,
|
||||
) -> impl IntoView {
|
||||
let message = bubble.message.clone();
|
||||
let content = message.content.clone();
|
||||
let emotion = message.emotion.clone();
|
||||
let is_whisper = message.is_whisper;
|
||||
let content = bubble.message.content.clone();
|
||||
let emotion = bubble.message.emotion.clone();
|
||||
let is_whisper = bubble.message.is_whisper;
|
||||
let expires_at = bubble.expires_at;
|
||||
|
||||
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_width = measured_width.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
|
||||
// After measurement: use calculated positions directly (no transforms)
|
||||
|
|
@ -170,11 +168,6 @@ pub fn SpeechBubble(
|
|||
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)
|
||||
let opacity = if measured { 1.0 } else { 0.0 };
|
||||
|
||||
|
|
@ -182,8 +175,6 @@ pub fn SpeechBubble(
|
|||
"position: absolute; \
|
||||
left: {}px; \
|
||||
top: {}px; \
|
||||
transform: none; \
|
||||
transform-origin: {}; \
|
||||
width: fit-content; \
|
||||
max-width: {}px; \
|
||||
opacity: {}; \
|
||||
|
|
@ -198,7 +189,6 @@ pub fn SpeechBubble(
|
|||
z-index: 99999;",
|
||||
final_left,
|
||||
final_top,
|
||||
transform_origin,
|
||||
max_width,
|
||||
opacity,
|
||||
bg_color,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue