Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
76496ec6
authored
Sep 30, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update style
parent
244c2c93
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
components/message.vue
components/who-read-list.vue
components/message.vue
View file @
76496ec6
...
...
@@ -34,7 +34,7 @@
<template
v-if=
"showReadSummary && !isWithdrawMessage"
>
<div
v-if=
"isMyMessage"
class=
"msg-read pos-rel"
>
<span
@
click=
"
readListVisibility = true
"
@
click=
"
openReaderList
"
class=
"pointer"
:class=
"
{ all: isAllRead }"
>
...
...
@@ -48,6 +48,7 @@
v-if=
"readListVisibility"
@
blur=
"readListVisibility = false"
:msgId=
"data.id"
:class=
"{ offset: readerListOffset }"
/>
</div>
</template>
...
...
@@ -62,7 +63,7 @@
</template>
<
script
lang=
"ts"
>
import
{
Component
,
Inject
,
Mixins
,
Prop
,
Ref
}
from
"vue-property-decorator"
;
import
{
Component
,
Inject
,
Mixins
,
Prop
}
from
"vue-property-decorator"
;
import
{
Filters
}
from
"../mixin/filter"
;
import
*
as
dto
from
"../model"
;
...
...
@@ -149,6 +150,8 @@ export default class Message extends Mixins(Filters) {
private
org
=
""
;
private
readerListOffset
=
false
;
private
get
canWithdraw
()
{
if
(
this
.
data
)
{
return
new
Date
().
valueOf
()
-
this
.
data
.
ts
*
1000
<
twoMinutes
;
...
...
@@ -273,6 +276,11 @@ export default class Message extends Mixins(Filters) {
});
});
}
private
openReaderList
(
e
:
MouseEvent
)
{
this
.
readerListOffset
=
e
.
x
<
450
;
this
.
readListVisibility
=
true
;
}
}
</
script
>
...
...
components/who-read-list.vue
View file @
76496ec6
...
...
@@ -176,6 +176,11 @@ export default class WhoReadList extends Vue {
z-index
:
2
;
margin-left
:
-100px
;
width
:
125px
;
&.offset
{
margin-left
:
0
;
}
.number-count
{
font-size
:
14px
;
color
:
#333333
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment