File tree 3 files changed +5
-3
lines changed
modals/modalContents/buttonBuilder
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 162
162
</SettingComponent >
163
163
164
164
<SettingComponent name =" Background image" description =" A background image to use in the button." >
165
- <span >{buttonConfig .backgroundImage ?? ' none' }</span >
165
+ <span style = "word-break: break-word" >{buttonConfig .backgroundImage ?? ' none' }</span >
166
166
<Button variant ={ButtonStyleType .PRIMARY } onclick ={() => changeBackgroundImage ()} tooltip =" Select from vault"
167
- >Select </Button
167
+ >Change </Button
168
168
>
169
169
</SettingComponent >
170
170
Original file line number Diff line number Diff line change 57
57
class:disabled ={disabled }
58
58
class:mb-error ={error }
59
59
style ={cssStyle }
60
- style:background-image ={backgroundImage }
60
+ style:background-image ={backgroundImage ? ` url("${ backgroundImage }") ` : undefined }
61
61
aria-label ={tooltip }
62
62
disabled ={disabled }
63
63
onclick ={event => click (event , ButtonClickType .LEFT )}
Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ div.mb-view-wrapper {
99
99
vertical-align : bottom;
100
100
/* Add a gap between text and icons. */
101
101
gap : var (--size-4-1 );
102
+ background-size : cover;
103
+ background-position : center center;
102
104
103
105
& .mod-plain {
104
106
background : none;
You can’t perform that action at this time.
0 commit comments