refactor: monorepo+pnpm (removed husky)
This commit is contained in:
28
packages/hoppscotch-app/components/smart/DeletableChip.vue
Normal file
28
packages/hoppscotch-app/components/smart/DeletableChip.vue
Normal file
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<span class="chip">
|
||||
<i class="opacity-75 material-icons">attachment</i>
|
||||
<span class="max-w-64 px-2 truncate"><slot></slot></span>
|
||||
<ButtonSecondary
|
||||
class="rounded close-button"
|
||||
svg="x"
|
||||
@click.native="$emit('chip-delete')"
|
||||
/>
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.chip {
|
||||
@apply inline-flex;
|
||||
@apply items-center;
|
||||
@apply justify-center;
|
||||
@apply rounded;
|
||||
@apply pl-2;
|
||||
@apply pr-0.5;
|
||||
@apply bg-transparent;
|
||||
@apply border border-divider;
|
||||
}
|
||||
|
||||
.close-button {
|
||||
@apply p-0.5;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user