mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
Chore: Refactors view note component (#2310)
This commit is contained in:
committed by
GitHub
parent
047617713e
commit
2a492b4162
@@ -5,8 +5,10 @@
|
||||
&.round {
|
||||
border-radius: 1000px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.card {
|
||||
padding: var(--space-small);
|
||||
}
|
||||
|
||||
.button-wrapper .button.link.grey-btn {
|
||||
|
||||
@@ -287,7 +287,7 @@ $card-font-color: $body-font-color;
|
||||
$card-divider-background: $light-gray;
|
||||
$card-border: 1px solid var(--color-border);
|
||||
$card-shadow: var(--shadow-small);
|
||||
$card-border-radius: var(--border-radius-medium);
|
||||
$card-border-radius: var(--border-radius-normal);
|
||||
$card-padding: var(--space-small);
|
||||
$card-margin: $global-margin;
|
||||
|
||||
|
||||
@@ -46,21 +46,18 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.wrap {
|
||||
.input--note {
|
||||
font-size: var(--font-size-mini);
|
||||
border-color: transparent;
|
||||
margin: 0;
|
||||
resize: none;
|
||||
min-height: var(--space-larger);
|
||||
}
|
||||
.input--note {
|
||||
font-size: var(--font-size-mini);
|
||||
border-color: transparent;
|
||||
margin-bottom: var(--space-small);
|
||||
padding: 0;
|
||||
resize: none;
|
||||
min-height: var(--space-larger);
|
||||
}
|
||||
|
||||
.footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
width: 100%;
|
||||
padding: var(--space-small);
|
||||
padding-top: 0;
|
||||
}
|
||||
.footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div class="note-wrap">
|
||||
<div class="text">
|
||||
<div class="card note-wrap">
|
||||
<p class="note__content">
|
||||
{{ note }}
|
||||
</div>
|
||||
</p>
|
||||
<div class="footer">
|
||||
<div class="meta">
|
||||
<div :title="userName">
|
||||
@@ -19,7 +19,6 @@
|
||||
icon="ion-compose"
|
||||
color-scheme="secondary"
|
||||
class-names="button--emoji"
|
||||
class="button-wrap"
|
||||
@click="onEdit"
|
||||
/>
|
||||
<woot-button
|
||||
@@ -28,7 +27,6 @@
|
||||
icon="ion-trash-b"
|
||||
color-scheme="secondary"
|
||||
class-names="button--emoji"
|
||||
class="button-wrap"
|
||||
@click="onDelete"
|
||||
/>
|
||||
</div>
|
||||
@@ -90,17 +88,9 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.note-wrap {
|
||||
padding: var(--space-small);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--border-radius-small);
|
||||
margin-bottom: var(--space-smaller);
|
||||
|
||||
.text {
|
||||
padding-bottom: var(--space-small);
|
||||
font-size: var(--font-size-mini);
|
||||
color: var(--color-body);
|
||||
}
|
||||
.note__content {
|
||||
font-size: var(--font-size-mini);
|
||||
margin-bottom: var(--space-small);
|
||||
}
|
||||
|
||||
.footer {
|
||||
@@ -119,19 +109,20 @@ export default {
|
||||
}
|
||||
}
|
||||
.actions {
|
||||
display: none;
|
||||
display: flex;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.button--emoji {
|
||||
margin-left: var(--space-small);
|
||||
height: var(--space-medium);
|
||||
width: var(--space-medium);
|
||||
}
|
||||
}
|
||||
|
||||
.note-wrap:hover {
|
||||
.actions {
|
||||
display: flex;
|
||||
|
||||
.button-wrap {
|
||||
margin-right: var(--space-small);
|
||||
height: var(--space-medium);
|
||||
width: var(--space-medium);
|
||||
}
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user