mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Ladybird: Left-align long url in address bar
Previously when there was a very long url that spanned outside of the address bar, the text shown would be the one starting from the very end of the url instead of from the beginning, so you would be seeing the query parameters for example, instead of the domain.
This commit is contained in:
parent
feef83359d
commit
f0312de7eb
Notes:
sideshowbarker
2024-07-17 00:55:14 +09:00
Author: https://github.com/martinfalisse Commit: https://github.com/SerenityOS/serenity/commit/f0312de7eb Pull-request: https://github.com/SerenityOS/serenity/pull/17265 Reviewed-by: https://github.com/linusg
@ -89,6 +89,7 @@ Tab::Tab(BrowserWindow* window, StringView webdriver_content_ipc_path)
|
||||
}
|
||||
|
||||
m_location_edit->setText(url.to_deprecated_string().characters());
|
||||
m_location_edit->setCursorPosition(0);
|
||||
|
||||
// Don't add to history if back or forward is pressed
|
||||
if (!m_is_history_navigation) {
|
||||
|
Loading…
Reference in New Issue
Block a user