Skip to content
Open
Changes from 1 commit
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
2fcd3a9
downgrade view
NeloBlivion Sep 3, 2025
027527d
Merge branch 'master' into cv2_fixes
NeloBlivion Sep 3, 2025
b319d13
skeleton for actionrow
NeloBlivion Sep 3, 2025
fcb0849
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 3, 2025
d1f33ea
cleanup
NeloBlivion Sep 3, 2025
8efedd3
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 3, 2025
54afda3
Merge branch 'master' into cv2_fixes
Lulalaby Sep 3, 2025
6d6ce3e
eh..... going through it... don't judge yet................
NeloBlivion Sep 3, 2025
f13f5e0
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 3, 2025
b322b42
correct
NeloBlivion Sep 3, 2025
c0022f1
v2
NeloBlivion Sep 3, 2025
e830df4
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 3, 2025
be236bf
Merge branch 'master' into cv2_fixes
NeloBlivion Sep 22, 2025
23f296d
better separation of views
NeloBlivion Sep 22, 2025
57a0d98
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2025
eaa2c30
import
NeloBlivion Sep 22, 2025
c6c4fbf
)
NeloBlivion Sep 22, 2025
57282b8
))
NeloBlivion Sep 22, 2025
1da73f6
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2025
2b981d3
attempt modal conversion
NeloBlivion Sep 22, 2025
c929c67
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2025
e61064d
types
NeloBlivion Sep 22, 2025
d8e3d4f
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2025
057a26b
container uses actionrow instead of button/select, remove decorator s…
NeloBlivion Sep 22, 2025
b7a8f6b
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2025
166f540
types
NeloBlivion Sep 22, 2025
a7346cd
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2025
836998d
imports
NeloBlivion Sep 22, 2025
16b4886
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2025
5255da1
remove Select.label & Select.description
NeloBlivion Sep 22, 2025
a1068fb
update refresh logic
NeloBlivion Sep 22, 2025
e199c8c
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2025
0dc7522
typext
NeloBlivion Sep 22, 2025
bfd4aed
reduce further
NeloBlivion Sep 22, 2025
1223dea
fix __all__
NeloBlivion Sep 22, 2025
3a82843
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2025
25fbd2a
typecheck
NeloBlivion Sep 22, 2025
3ee00e0
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2025
61a1433
__
NeloBlivion Sep 22, 2025
edb4951
dispatch
NeloBlivion Sep 22, 2025
d9c465b
ComponentType
NeloBlivion Sep 22, 2025
1ae1c77
types ?
NeloBlivion Sep 22, 2025
bd60e9b
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2025
090af2e
typecheck again
NeloBlivion Sep 22, 2025
00faca4
attrs
NeloBlivion Sep 22, 2025
5c7a02b
fixes
NeloBlivion Sep 22, 2025
1975f6d
adjust
NeloBlivion Sep 22, 2025
2816b1b
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2025
e615190
actionrow components
NeloBlivion Sep 22, 2025
93fb09a
arc
NeloBlivion Sep 22, 2025
0517d2e
button priority
NeloBlivion Sep 22, 2025
e32fdad
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2025
bdb6d21
maybe?
NeloBlivion Sep 22, 2025
20aae0f
no
NeloBlivion Sep 22, 2025
a846b43
update examples
NeloBlivion Sep 23, 2025
7caf4f5
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 23, 2025
0060e0f
remove v2 from weights
NeloBlivion Sep 23, 2025
8308615
misc
NeloBlivion Sep 23, 2025
5410e00
adjust Label args (first arg label)
NeloBlivion Sep 23, 2025
d4dc1c5
add select overloads
NeloBlivion Sep 23, 2025
b619025
actionrow clarification
NeloBlivion Sep 23, 2025
f90a3bc
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 23, 2025
35e4cb1
all items in actionrow have the disabled attribute
NeloBlivion Sep 23, 2025
65a1116
fixes
NeloBlivion Sep 24, 2025
e453e01
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 24, 2025
e9ac8bc
more imports
NeloBlivion Sep 25, 2025
b2ed0d1
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 25, 2025
9ca373a
docs and typing cleanup
NeloBlivion Sep 25, 2025
0acb103
update _component_to_item
NeloBlivion Sep 26, 2025
43df60f
fix to_component_dict
NeloBlivion Oct 3, 2025
0b58904
attempt splitting into ViewItem and ModalItem
NeloBlivion Oct 3, 2025
3a8bb10
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 3, 2025
64f3c4f
more
NeloBlivion Oct 3, 2025
45a5c44
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 3, 2025
4ee4b70
guys don't you love typing changes
NeloBlivion Oct 3, 2025
fd67ea2
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 3, 2025
148535a
types
NeloBlivion Oct 3, 2025
bcc1a7a
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 3, 2025
712cd3c
this is required apparently
NeloBlivion Oct 3, 2025
ef78980
self.modal
NeloBlivion Oct 3, 2025
9cf2886
set modal
NeloBlivion Oct 3, 2025
62ffcdf
no weights in basemodal
NeloBlivion Oct 3, 2025
a961d49
undo on_modal_error change
NeloBlivion Oct 3, 2025
8664272
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 3, 2025
fbac652
define Item.type
NeloBlivion Oct 3, 2025
c2bd6b5
further consolidate
NeloBlivion Oct 3, 2025
9255c39
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 3, 2025
8fdc3f1
oops
NeloBlivion Oct 3, 2025
8a9fe8f
fix modal init
NeloBlivion Oct 3, 2025
38352c2
actual fix
NeloBlivion Oct 3, 2025
1d790da
forgot modal children thing
NeloBlivion Oct 3, 2025
846b14d
clarify
NeloBlivion Oct 3, 2025
157d8c7
adjust item docs
NeloBlivion Oct 4, 2025
fb01cfe
copyright
NeloBlivion Oct 5, 2025
340b5d5
children
NeloBlivion Oct 5, 2025
3f3ae31
Update discord/ui/action_row.py
NeloBlivion Oct 6, 2025
be9eb51
add Webhook.parent
NeloBlivion Oct 6, 2025
cf49aa3
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 6, 2025
017f15f
add Webhook.from_interaction
NeloBlivion Oct 6, 2025
bba29af
slots
NeloBlivion Oct 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions discord/ui/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ def remove_item(self, item: Item[V]) -> None:
if item._rendered_row is not None:
self.weights[item._rendered_row] -= item.width
item._rendered_row = None
if len(self.weights) > 5: # attempt to downgrade view
if all(x == 0 for x in self.weights[5:]):
self.weights = self.weights[:5]

def clear(self) -> None:
self.weights = [0, 0, 0, 0, 0]
Expand Down
Loading