chore: audit components
This commit is contained in:
@@ -3,7 +3,7 @@ use std::{cell::RefCell, rc::Rc};
|
||||
use gpui::{
|
||||
Context, InteractiveElement as _, IntoElement, Modifiers, MouseButton, ParentElement as _,
|
||||
Render, StatefulInteractiveElement as _, Styled as _, TestAppContext, VisualTestContext,
|
||||
Window, WindowHandle, div, point, px, rgba,
|
||||
Window, WindowHandle, div, point, px,
|
||||
};
|
||||
use gpui_native_core::popover::Popover;
|
||||
use gpui_native_theme::Theme;
|
||||
@@ -26,7 +26,6 @@ impl Render for Harness {
|
||||
div()
|
||||
.id("popover-target")
|
||||
.size(px(40.))
|
||||
.bg(rgba(0x000000ff))
|
||||
.on_click(move |_, _, cx| {
|
||||
*target_clicks.borrow_mut() += 1;
|
||||
cx.stop_propagation();
|
||||
@@ -48,7 +47,6 @@ impl Render for Harness {
|
||||
.debug_selector(|| "popover-trigger".to_string())
|
||||
.w(px(100.))
|
||||
.h(px(32.))
|
||||
.bg(rgba(0x000000ff))
|
||||
.into_any_element()
|
||||
})
|
||||
.content(|_, _| {
|
||||
|
||||
Reference in New Issue
Block a user