Reddit-Enhancement-Suite icon indicating copy to clipboard operation
Reddit-Enhancement-Suite copied to clipboard

[REQUEST] Copy button for username on profile hover card

Open DankMemeGuy opened this issue 5 years ago • 6 comments

When hovering over a profile some stats come up, it would be nice if one of the buttons easily copied the username onto the clipboard.

DankMemeGuy avatar Feb 25 '20 12:02 DankMemeGuy

Oh wow I can def. take this How about something like the copy to clipboard icon from github? image

johnnybigoode-zz avatar Apr 21 '20 23:04 johnnybigoode-zz

That's perfect!

DankMemeGuy avatar Apr 22 '20 01:04 DankMemeGuy

We actually already have an icon library included, so a copy icon that's in there already would be best to use! It's called batch, and there's a cheat sheet here: http://betsol.github.io/batch-webfont/

On Tue, Apr 21, 2020 at 8:46 PM DankMemeGuy [email protected] wrote:

That's perfect!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/honestbleeps/Reddit-Enhancement-Suite/issues/5181#issuecomment-617492533, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACPBM27FBVVOKTRSLPLGYLRNZD5LANCNFSM4K3HJALQ .

honestbleeps avatar Apr 22 '20 02:04 honestbleeps

@honestbleeps thank you, that makes everything even easier

johnnybigoode-zz avatar Apr 22 '20 18:04 johnnybigoode-zz

you could even skip the () wrappers and just show the 📋 icon

jewel-andraia avatar Apr 22 '20 20:04 jewel-andraia

Here's the dilemma. I could use the emoji 📋 Then there is we a icon library included. But I don't know how to use it. With fonts-awesome, I just had to add a a class to a elemment. But I fear it was not so intuitive

Here's what I tried

const header = string.html`
	<div>
		<a href="/user/${data.name}">/u/${data.name}</a>
		<a>
			<div class="icon">
				<span class="batch batch-clipboard"></span>
			</div>
			<div class="glyph batch">
                <span class="glyph-caption">Glyph:</span> 
            </div>
			<i class="glyph batch"></i>
		    <div class="glyph batch">                    
			</div>
			📋
		</a>
	 	(<a href="/user/${data.name}/submitted/">${i18n('userInfoLinks')}</a>)
	 	(<a href="/user/${data.name}/comments/">${i18n('userInfoComments')}</a>)
	</div>

Here's what I got. Only the emoji renders.

image

Erm... help? @honestbleeps

johnnybigoode-zz avatar Apr 22 '20 21:04 johnnybigoode-zz