fix(add_column): add vertical scroll
This commit is contained in:
@@ -2,8 +2,8 @@ use core::f32;
|
|||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
use egui::{
|
use egui::{
|
||||||
pos2, vec2, Align, Color32, FontId, Id, Image, Margin, Pos2, Rect, RichText, Separator, Ui,
|
pos2, vec2, Align, Color32, FontId, Id, Image, Margin, Pos2, Rect, RichText, ScrollArea,
|
||||||
Vec2, Widget,
|
Separator, Ui, Vec2, Widget,
|
||||||
};
|
};
|
||||||
use enostr::Pubkey;
|
use enostr::Pubkey;
|
||||||
use nostrdb::{Ndb, Transaction};
|
use nostrdb::{Ndb, Transaction};
|
||||||
@@ -184,6 +184,8 @@ impl<'a> AddColumnView<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn ui(&mut self, ui: &mut Ui) -> Option<AddColumnResponse> {
|
pub fn ui(&mut self, ui: &mut Ui) -> Option<AddColumnResponse> {
|
||||||
|
ScrollArea::vertical()
|
||||||
|
.show(ui, |ui| {
|
||||||
let mut selected_option: Option<AddColumnResponse> = None;
|
let mut selected_option: Option<AddColumnResponse> = None;
|
||||||
for column_option_data in self.get_base_options() {
|
for column_option_data in self.get_base_options() {
|
||||||
let option = column_option_data.option.clone();
|
let option = column_option_data.option.clone();
|
||||||
@@ -195,6 +197,8 @@ impl<'a> AddColumnView<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selected_option
|
selected_option
|
||||||
|
})
|
||||||
|
.inner
|
||||||
}
|
}
|
||||||
|
|
||||||
fn notifications_ui(&mut self, ui: &mut Ui) -> Option<AddColumnResponse> {
|
fn notifications_ui(&mut self, ui: &mut Ui) -> Option<AddColumnResponse> {
|
||||||
|
|||||||
Reference in New Issue
Block a user