Skip to content

Commit

Permalink
tune "spell" option width & alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds committed Jul 28, 2023
1 parent d5db800 commit 9114d36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions WeakAurasOptions/LoadOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function OptionsPrivate.ConstructOptions(prototype, data, startorder, triggernum
end
if(arg.type == "spell" or arg.type == "aura" or arg.type == "item") then
if not arg.showExactOption then
options["use_"..name].width = arg.width or WeakAuras.normalWidth - 0.1;
options["use_"..name].width = (arg.width or WeakAuras.normalWidth) - 0.2;
end
end

Expand Down Expand Up @@ -510,7 +510,7 @@ function OptionsPrivate.ConstructOptions(prototype, data, startorder, triggernum
if (arg.showExactOption) then
options["exact"..name] = {
type = "toggle",
width = WeakAuras.normalWidth + 0.1,
width = WeakAuras.normalWidth,
name = arg.type == "item" and L["Exact Item Match"] or L["Exact Spell Match"],
order = order,
hidden = hidden,
Expand All @@ -529,7 +529,7 @@ function OptionsPrivate.ConstructOptions(prototype, data, startorder, triggernum
end
options["icon"..name] = {
type = "execute",
width = 0.1,
width = 0.2,
name = "",
order = order,
hidden = hidden,
Expand Down Expand Up @@ -563,7 +563,7 @@ function OptionsPrivate.ConstructOptions(prototype, data, startorder, triggernum
order = order + 1;
options[name] = {
type = "input",
width = arg.showExactOption and WeakAuras.doubleWidth or WeakAuras.normalWidth,
width = (arg.showExactOption and WeakAuras.doubleWidth or WeakAuras.normalWidth) - (arg.showExactOption and 0.2 or 0),
name = arg.display,
order = order,
hidden = hidden,
Expand Down

0 comments on commit 9114d36

Please sign in to comment.