Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
c3345410
Commit
c3345410
authored
8 years ago
by
Eugen Rochko
Browse files
Options
Downloads
Patches
Plain Diff
Add tooltip to privacy dropdown
parent
f864fee1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/assets/javascripts/components/features/compose/components/privacy_dropdown.jsx
+3
-2
3 additions, 2 deletions
...mponents/features/compose/components/privacy_dropdown.jsx
app/assets/stylesheets/components.scss
+1
-1
1 addition, 1 deletion
app/assets/stylesheets/components.scss
with
4 additions
and
3 deletions
app/assets/javascripts/components/features/compose/components/privacy_dropdown.jsx
+
3
−
2
View file @
c3345410
...
...
@@ -10,7 +10,8 @@ const messages = defineMessages({
private_short
:
{
id
:
'
privacy.private.short
'
,
defaultMessage
:
'
Private
'
},
private_long
:
{
id
:
'
privacy.private.long
'
,
defaultMessage
:
'
Post to followers only
'
},
direct_short
:
{
id
:
'
privacy.direct.short
'
,
defaultMessage
:
'
Direct
'
},
direct_long
:
{
id
:
'
privacy.direct.long
'
,
defaultMessage
:
'
Post to mentioned users only
'
}
direct_long
:
{
id
:
'
privacy.direct.long
'
,
defaultMessage
:
'
Post to mentioned users only
'
},
change_privacy
:
{
id
:
'
privacy.change
'
,
defaultMessage
:
'
Adjust status privacy
'
}
});
const
iconStyle
=
{
...
...
@@ -79,7 +80,7 @@ const PrivacyDropdown = React.createClass({
return
(
<
div
ref
=
{
this
.
setRef
}
className
=
{
`privacy-dropdown
${
open
?
'
active
'
:
''
}
`
}
>
<
div
className
=
'privacy-dropdown__value'
><
IconButton
icon
=
{
valueOption
.
icon
}
size
=
{
18
}
active
=
{
open
}
inverted
onClick
=
{
this
.
handleToggle
}
style
=
{
iconStyle
}
/></
div
>
<
div
className
=
'privacy-dropdown__value'
><
IconButton
icon
=
{
valueOption
.
icon
}
title
=
{
intl
.
formatMessage
(
messages
.
change_privacy
)
}
size
=
{
18
}
active
=
{
open
}
inverted
onClick
=
{
this
.
handleToggle
}
style
=
{
iconStyle
}
/></
div
>
<
div
className
=
'privacy-dropdown__dropdown'
>
{
options
.
map
(
item
=>
<
div
key
=
{
item
.
value
}
onClick
=
{
this
.
handleClick
.
bind
(
this
,
item
.
value
)
}
className
=
{
`privacy-dropdown__option
${
item
.
value
===
value
?
'
active
'
:
''
}
`
}
>
...
...
This diff is collapsed.
Click to expand it.
app/assets/stylesheets/components.scss
+
1
−
1
View file @
c3345410
...
...
@@ -1660,7 +1660,7 @@ button.active i.fa-retweet {
display
:
none
;
position
:
absolute
;
left
:
0
;
top
:
2
4
px
;
top
:
2
7
px
;
width
:
230px
;
background
:
$color5
;
border-radius
:
0
4px
4px
4px
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment