Skip to content

Commit

Permalink
update: notice overflow scroll to auto
Browse files Browse the repository at this point in the history
  • Loading branch information
osmansufy committed Dec 17, 2024
1 parent 4ff866f commit 71e6b10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/src/less/global-admin.less
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
.dokan-message {
div{
max-height: 50px;
overflow: scroll;
overflow: auto;
}
margin: 0;
}
Expand Down
2 changes: 2 additions & 0 deletions src/admin/components/AdminNotice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
<h3 v-if="notice.title">{{ notice.title }}</h3>
<div v-if="notice.description" v-html="notice.description"></div>
<template v-if="notice.actions && notice.actions.length">
<div>
<template v-for="action in notice.actions">
<a v-if="action.action" class="dokan-btn" :class="[`dokan-btn-${action.type}`, action.class]" :target="action.target ? action.target : '_self'" :href="action.action">{{ action.text }}</a>
<button :disabled="loading" v-else class="dokan-btn btn-dokan" :class="[`dokan-btn-${action.type}`, action.class]" @click="handleAction(action, index)">{{ loading || task_completed ? button_text : action.text }}</button>
</template>
</div>
</template>
</div>

Expand Down

0 comments on commit 71e6b10

Please sign in to comment.