Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion linux/crates/app/src/ui/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ pub struct StructureTabSlot {
pub mode: crate::ui::structure_tab::StructureMode,
}


/// One workspace tab pinned to a single `(schema, table)` entity in
/// Data (Browse) mode. The Structure (DDL) view is no longer fused
/// into the same tab — `WorkspaceTab::Structure` is its own
Expand Down
15 changes: 4 additions & 11 deletions linux/crates/app/src/ui/browse_tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,7 @@ impl BrowseTab {
// shows the active rule count next to the word when ≥1 rule
// applies; hidden otherwise.
let filter_label = gtk::Label::new(Some(&crate::tr!("Filter")));
let filter_badge = gtk::Label::builder()
.label("")
.visible(false)
.build();
let filter_badge = gtk::Label::builder().label("").visible(false).build();
filter_badge.add_css_class("numeric");
filter_badge.add_css_class("caption-heading");
filter_badge.add_css_class("dim-label");
Expand Down Expand Up @@ -1255,7 +1252,6 @@ impl BrowseTab {
.build();
self.replace_status_child("error", &page);
}

}

impl SimpleComponent for BrowseTab {
Expand Down Expand Up @@ -1374,9 +1370,8 @@ impl SimpleComponent for BrowseTab {
let no_pk_for_sync = no_pk_banner.clone();
let filter_for_sync = filter_strip.widget.clone();
std::rc::Rc::new(move || {
let any_revealed = read_only_for_sync.is_revealed()
|| no_pk_for_sync.is_revealed()
|| filter_for_sync.reveals_child();
let any_revealed =
read_only_for_sync.is_revealed() || no_pk_for_sync.is_revealed() || filter_for_sync.reveals_child();
root_for_sync.set_reveal_top_bars(any_revealed);
})
};
Expand Down Expand Up @@ -2500,9 +2495,7 @@ fn update_selection_chrome(label: &gtk::Label, n: u32) {
return;
}
let count = n.to_string();
label.set_label(
&crate::tr!("{n} selected · press Delete to remove").replace("{n}", &count),
);
label.set_label(&crate::tr!("{n} selected · press Delete to remove").replace("{n}", &count));
label.set_visible(true);
}

Expand Down