diff --git a/client/scss/all.scss b/client/scss/all.scss index 716e893b..2f1447f5 100644 --- a/client/scss/all.scss +++ b/client/scss/all.scss @@ -35,6 +35,7 @@ @import '~row/_row'; @import '~vertical-split/_vertical-split'; @import '~tooltip/_tooltip'; +@import '~social-share-link/_social-share-link'; @import '~channel-claims-display/_channel-claims-display'; @import '~dropzone/_dropzone'; diff --git a/client/scss/social-share-link/_social-share-link.scss b/client/scss/social-share-link/_social-share-link.scss new file mode 100644 index 00000000..58973667 --- /dev/null +++ b/client/scss/social-share-link/_social-share-link.scss @@ -0,0 +1,11 @@ +.social-share-link { + flex-wrap: wrap; + margin-right: -0.5em; + margin-left: -0.5em; +} + +.social-share-link > a{ + padding-right:0.5em; + padding-left:0.5em; + padding-bottom:0.3em; +} \ No newline at end of file diff --git a/client/src/components/AssetShareButtons/index.js b/client/src/components/AssetShareButtons/index.js index dfb0c0b9..a7d175e0 100644 --- a/client/src/components/AssetShareButtons/index.js +++ b/client/src/components/AssetShareButtons/index.js @@ -1,9 +1,9 @@ import React from 'react'; -import SpaceBetween from '@components/SpaceBetween'; +import SocialShareLink from '@components/SocialShareLink'; const AssetShareButtons = ({ host, name, shortId }) => { return ( - + { > reddit - + + mastodon + + + diaspora + + ); }; diff --git a/client/src/components/SocialShareLink/index.jsx b/client/src/components/SocialShareLink/index.jsx new file mode 100644 index 00000000..5f382b2b --- /dev/null +++ b/client/src/components/SocialShareLink/index.jsx @@ -0,0 +1,13 @@ +import React from 'react'; + +class SocialShareLink extends React.Component { + render () { + return ( +
+ {this.props.children} +
+ ); + } +} + +export default SocialShareLink;