update issues panel
This commit is contained in:
@@ -147,11 +147,6 @@ pub trait Panel: EventEmitter<PanelEvent> + Render + Focusable {
|
||||
fn dump(&self, cx: &App) -> PanelState {
|
||||
PanelState::new(self)
|
||||
}
|
||||
|
||||
/// Whether the panel has inner padding when the panel is in the tabs layout, default is `true`.
|
||||
fn inner_padding(&self, cx: &App) -> bool {
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
/// The PanelView trait used to define the panel view.
|
||||
@@ -174,7 +169,6 @@ pub trait PanelView: 'static + Send + Sync {
|
||||
fn view(&self) -> AnyView;
|
||||
fn focus_handle(&self, cx: &App) -> FocusHandle;
|
||||
fn dump(&self, cx: &App) -> PanelState;
|
||||
fn inner_padding(&self, cx: &App) -> bool;
|
||||
}
|
||||
|
||||
impl<T: Panel> PanelView for Entity<T> {
|
||||
@@ -252,10 +246,6 @@ impl<T: Panel> PanelView for Entity<T> {
|
||||
fn dump(&self, cx: &App) -> PanelState {
|
||||
self.read(cx).dump(cx)
|
||||
}
|
||||
|
||||
fn inner_padding(&self, cx: &App) -> bool {
|
||||
self.read(cx).inner_padding(cx)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&dyn PanelView> for AnyView {
|
||||
|
||||
Reference in New Issue
Block a user