mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Allow Button component to not have button-block class
This needs a better solution for configuring the button's CSS classes, but this works for now.
This commit is contained in:
parent
05aaa5b667
commit
df3f7e9a6e
@ -39,8 +39,9 @@ export default class Button extends Component {
|
||||
`);
|
||||
return;
|
||||
}
|
||||
// TODO: Replace hack for 'small' with a better way to configure button classes.
|
||||
$(template).html(/*html*/`
|
||||
<button type="submit" class="button button-block button-${this.get('style')}" style="margin-top:10px;" disabled>${
|
||||
<button type="submit" class="button ${this.get('style') !== 'small' ? 'button-block' : ''} button-${this.get('style')}" style="margin-top:10px;" disabled>${
|
||||
html_encode(this.get('label'))
|
||||
}</button>
|
||||
`);
|
||||
|
Loading…
Reference in New Issue
Block a user