Update StyledExt to impl over I & F as well as V for Div

Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
This commit is contained in:
Nate Butler 2023-11-08 15:25:44 -05:00
parent f4abd95866
commit 9bdfc7a2e5

View file

@ -1,4 +1,4 @@
use gpui::{Div, Styled}; use gpui::{Div, ElementFocus, ElementInteractivity, Styled};
use crate::UITextSize; use crate::UITextSize;
@ -66,4 +66,9 @@ pub trait StyledExt: Styled {
} }
} }
impl<V: 'static> StyledExt for Div<V> {} impl<V, I, F> StyledExt for Div<V, I, F>
where
I: ElementInteractivity<V>,
F: ElementFocus<V>,
{
}