Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit b7ce8e0

Browse files
committed
Update v1.9 | Fixed bookmarks
1 parent 420c30d commit b7ce8e0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

anka-browser.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,15 @@ def __init__(self):
145145
top_layout.addWidget(self.url_bar)
146146
top_layout.addWidget(self.settings_button)
147147

148-
self.load_bookmarks(top_layout)
148+
bookmarks_layout = QHBoxLayout()
149+
bookmarks_layout.setContentsMargins(0,0,0,0)
150+
151+
self.load_bookmarks(bookmarks_layout)
149152

150153
main_layout = QVBoxLayout()
151154
main_layout.setContentsMargins(0,0,0,0)
152155
main_layout.addLayout(top_layout)
156+
main_layout.addLayout(bookmarks_layout)
153157

154158
main_layout.addWidget(self.tabs)
155159

@@ -297,6 +301,7 @@ def load_bookmarks(self, top_layout):
297301
if url:
298302

299303
bookmark_button = QPushButton(url)
304+
bookmark_button.setFixedWidth(150)
300305
bookmark_button.setCursor(QCursor(Qt.CursorShape.PointingHandCursor))
301306
bookmark_button.clicked.connect(lambda checked, url=url: self.add_new_tab(QUrl(url), url))
302307
top_layout.addWidget(bookmark_button)

public/browser/bookmarks.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+

0 commit comments

Comments
 (0)