Delete bookmark button works properly, and bookmark textbox doesnt change height

This commit is contained in:
Yousef Khadadeh 2025-10-04 20:25:11 +03:00
parent 3583550bb2
commit d52759f898
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ template <typename T> class TextBox : public Element {
CLAY({
.layout = {
.sizing = {.width = CLAY_SIZING_GROW(static_cast<float>(io.fontSize * 2)), .height = CLAY_SIZING_GROW(static_cast<float>(io.fontSize))}
.sizing = {.width = CLAY_SIZING_GROW(static_cast<float>(io.fontSize * 2)), .height = CLAY_SIZING_GROW(static_cast<float>(io.fontSize * 1.25f))}
},
.custom = { .customData = this }
}) {

View file

@ -794,7 +794,7 @@ void Toolbar::bookmark_menu(bool justOpened) {
}
});
if(!toDelete.empty())
main.world->bMan.remove_bookmark(bookMenu.newName);
main.world->bMan.remove_bookmark(toDelete);
bool bookmarkExists = std::find(main.world->bMan.sorted_names().begin(), main.world->bMan.sorted_names().end(), bookMenu.newName) != main.world->bMan.sorted_names().end();
gui.left_to_right_line_layout([&]() {
gui.input_text("bookmark text input", &bookMenu.newName);