Skip to content

Commit

Permalink
Break buttons into new line
Browse files Browse the repository at this point in the history
  • Loading branch information
JanAckermann committed Jul 30, 2022
1 parent 8ebb563 commit b2b386b
Showing 1 changed file with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
<template>
<div class="compare-save-dialog oc-p-s oc-width-1-1">
<div class="oc-flex oc-flex-between oc-flex-middle oc-width-1-1">
<span>{{ unsavedChangesText }}</span>
<div>
<oc-button :disabled="!unsavedChanges" @click="$emit('revert')">
<translate>Revert</translate>
</oc-button>
<oc-button
appearance="filled"
variation="primary"
:disabled="!unsavedChanges || confirmButtonDisabled"
@click="$emit('confirm')"
>
<translate>Save</translate>
</oc-button>
</div>
<div class="compare-save-dialog oc-p-s oc-width-1-1 oc-flex oc-flex-between oc-flex-middle">
<span>{{ unsavedChangesText }}</span>
<div>
<oc-button :disabled="!unsavedChanges" @click="$emit('revert')">
<translate>Revert</translate>
</oc-button>
<oc-button
appearance="filled"
variation="primary"
:disabled="!unsavedChanges || confirmButtonDisabled"
@click="$emit('confirm')"
>
<translate>Save</translate>
</oc-button>
</div>
</div>
</template>
Expand Down Expand Up @@ -53,5 +51,6 @@ export default {
<style lang="scss">
.compare-save-dialog {
background: var(--oc-color-background-muted);
flex-flow: row wrap;
}
</style>

0 comments on commit b2b386b

Please sign in to comment.