diff --git a/src/app/components/ModalPermalink.jsx b/src/app/components/ModalPermalink.jsx index 96d611e6..514520de 100644 --- a/src/app/components/ModalPermalink.jsx +++ b/src/app/components/ModalPermalink.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import { useState } from 'react'; import PropTypes from 'prop-types'; import TranslatedComponent from './TranslatedComponent'; import ShortenUrl from '../utils/ShortenUrl'; @@ -34,6 +35,18 @@ export default class ModalPermalink extends TranslatedComponent { ); } + /** + * Copy the shortened URL to the clipboard + * @param {Event} e Click event + * @return {void} + */ + copyShortLink() { + let copyText = document.getElementById("shortenedUrl"); + // Copy the text inside the shortendUrl input to the clipboard + copyText.select(); + document.execCommand("copy"); + } + /** * Render the modal * @return {React.Component} Modal Content @@ -42,15 +55,17 @@ export default class ModalPermalink extends TranslatedComponent { let translate = this.context.language.translate; return
e.stopPropagation() }> -

{translate('permalink')}

+

{translate('permalink')}


{translate('URL')}

e.target.select() }/>

{translate('shortened')}

- e.target.select() }/> + e.target.select() }/>

-

s.orbis.zone is the new URL shortener domain, old eddp.co urls are considered end of life and could go down at any moment. Sorry for any inconvenience.

+
+

s.orbis.zone is the URL shortener domain. These links should persist indefinitely going forward. If for some reason there is a problem with the link shortening process, please report it in the EDCD Discord Server.

+
; } diff --git a/src/app/components/ModalShoppingList.jsx b/src/app/components/ModalShoppingList.jsx index 1791044c..a15f8ef0 100644 --- a/src/app/components/ModalShoppingList.jsx +++ b/src/app/components/ModalShoppingList.jsx @@ -359,15 +359,15 @@ export default class ModalShoppingList extends TranslatedComponent {

{translate('PHRASE_DIFFERENT_ROLLS')}

- +  |  - +  |  - +  |  - +  |  - +
diff --git a/src/less/modal.less b/src/less/modal.less index 4dba0a07..c5699920 100755 --- a/src/less/modal.less +++ b/src/less/modal.less @@ -79,7 +79,7 @@ color: @primary; } - input { + .groll { width: 6%; margin: 5px; text-align: center;