Bug/a few fixes (#158)

* Change default instance

* Fix cropped buttons

* Lint fix

* changelog

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2023-10-02 09:10:52 -04:00
1 parent cb877f9415
commit 256fc22bd9
7 files changed
+11 -8

No files matched your search

@@ -1,4 +1,5 @@
import "pkg:/components/Navigation/Navigation.bs"
import "pkg:/components/Services/Invidious/InvidiousService.bs"
import "pkg:/source/utils/Types.bs"
function Init()
@@ -29,6 +30,7 @@ function Init()
SetNavigation(m.testButton, "right", m.saveButton)
m.currentNavigtionNode = m.editButton
m.textEditBox.hintText = `e.g. ${Invidious.DEFAULT_INSTANCE}`
end function
function OnFocusChange() as void
@@ -76,7 +78,7 @@ end function
function OnEditButtonSelected()
keyboardDialog = createObject("roSGNode", "StandardKeyboardDialog")
keyboardDialog.title = "Edit Instance"
keyboardDialog.message = ["Enter the instance url (e.g. https://vid.puffyan.us)"]
keyboardDialog.message = [`Enter the instance url (e.g. ${Invidious.DEFAULT_INSTANCE})`]
keyboardDialog.text = m.top.text
keyboardDialog.buttons = ["OK", "Cancel"]
keyboardDialog.observeField("buttonSelected", FuncName(OnKeyboardButton))
@@ -21,7 +21,6 @@
translation="[326,13]" />
<TextEditBox
id="textEditBox"
hintText="e.g. https://https://vid.puffyan.us"
width="480"
height="50"
translation="[200,50]" />
@@ -35,9 +35,9 @@
<Button
id="closeButton"
text="Close"
minWidth="0"
minWidth="160"
showFocusFootprint="true"
translation="[404,506]" />
translation="[400,506]" />
</Rectangle>
</children>
</component>