Fix right click handler for tabs
Also, some fun test helpers Co-Authored-By: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
7b9e7fea4e
commit
920eced1d5
9 changed files with 116 additions and 11 deletions
|
@ -37,8 +37,11 @@ pub struct Tab {
|
|||
|
||||
impl Tab {
|
||||
pub fn new(id: impl Into<ElementId>) -> Self {
|
||||
let id = id.into();
|
||||
Self {
|
||||
div: div().id(id),
|
||||
div: div()
|
||||
.id(id.clone())
|
||||
.debug_selector(|| format!("TAB-{}", id)),
|
||||
selected: false,
|
||||
position: TabPosition::First,
|
||||
close_side: TabCloseSide::End,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue