web: fix minor styling issues
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		@ -5,6 +5,7 @@ import { MessageLevel } from "../messages/Message";
 | 
			
		||||
 | 
			
		||||
@customElement("ak-action-button")
 | 
			
		||||
export class ActionButton extends SpinnerButton {
 | 
			
		||||
 | 
			
		||||
    @property({ attribute: false })
 | 
			
		||||
    // eslint-disable-next-line @typescript-eslint/no-explicit-any
 | 
			
		||||
    apiRequest: () => Promise<any> = () => {
 | 
			
		||||
 | 
			
		||||
@ -16,6 +16,7 @@ import { ERROR_CLASS, PRIMARY_CLASS, PROGRESS_CLASS, SUCCESS_CLASS } from "../..
 | 
			
		||||
 | 
			
		||||
@customElement("ak-spinner-button")
 | 
			
		||||
export class SpinnerButton extends LitElement {
 | 
			
		||||
 | 
			
		||||
    @property({ type: Boolean })
 | 
			
		||||
    isRunning = false;
 | 
			
		||||
 | 
			
		||||
@ -79,7 +80,7 @@ export class SpinnerButton extends LitElement {
 | 
			
		||||
            }}
 | 
			
		||||
        >
 | 
			
		||||
            ${this.isRunning
 | 
			
		||||
                ? html` <span class="pf-c-button__progress">
 | 
			
		||||
                ? html`<span class="pf-c-button__progress">
 | 
			
		||||
                      <ak-spinner size=${PFSize.Medium}></ak-spinner>
 | 
			
		||||
                  </span>`
 | 
			
		||||
                : ""}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user