1
0
mirror of synced 2025-01-19 01:24:15 +01:00

impr: Make comment field in bookmark tooltip more readable

This commit is contained in:
WerWolv 2023-03-16 13:35:29 +01:00
parent 5a2b2e0813
commit c726c96286

View File

@ -82,7 +82,9 @@ namespace hex::plugin::builtin {
ImGui::TableNextColumn();
ImGui::TextFormatted("{}: ", "hex.builtin.view.bookmarks.header.comment"_lang.get());
ImGui::TableNextColumn();
ImGui::TextFormattedWrapped("\"{}\"", bookmark.comment);
ImGui::PushTextWrapPos(ImGui::CalcTextSize("X").x * 40);
ImGui::TextFormattedWrapped("{}", bookmark.comment);
ImGui::PopTextWrapPos();
}
ImGui::EndTable();