positioning of copy btn

pull/3429/head
lianahus 2 years ago committed by Aniket
parent 3d726f04ef
commit 55a9f8a229
  1. 63
      libs/remix-ui/renderer/src/lib/renderer.css
  2. 2
      libs/remix-ui/renderer/src/lib/renderer.tsx

@ -1,48 +1,47 @@
.remixui_sol.success, .remixui_sol.success,
.remixui_sol.error, .remixui_sol.error,
.remixui_sol.warning { .remixui_sol.warning {
white-space: pre-line; white-space: pre-line;
word-wrap: break-word; word-wrap: break-word;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
margin: 0.5em 0 1em 0; margin: 0.5em 0 1em 0;
border-radius: 5px; border-radius: 5px;
line-height: 20px; line-height: 20px;
padding: 8px 15px; padding: 8px 15px;
} }
.remixui_sol.success pre, .remixui_sol.success pre,
.remixui_sol.error pre, .remixui_sol.error pre,
.remixui_sol.warning pre { .remixui_sol.warning pre {
white-space: pre-line; white-space: pre-line;
overflow-y: hidden; overflow-y: hidden;
background-color: transparent; background-color: transparent;
margin: 0; margin: 0;
font-size: 12px; font-size: 12px;
border: 0 none; border: 0 none;
padding: 0; padding: 0;
border-radius: 0; border-radius: 0;
} }
.remixui_sol.success .close, .remixui_sol.success .close,
.remixui_sol.error .close, .remixui_sol.error .close,
.remixui_sol.warning .close { .remixui_sol.warning .close {
visibility: hidden; visibility: hidden;
white-space: pre-line; white-space: pre-line;
font-weight: bold; font-weight: bold;
position: absolute; position: absolute;
color: hsl(0, 0%, 0%); /* black in style-guide.js */ color: hsl(0, 0%, 0%); /* black in style-guide.js */
top: 0; top: 0;
right: 0; right: 0;
padding: 0.5em; padding: 0.5em;
} }
.remixui_sol.error { .remixui_sol.success a,
} .remixui_sol.error a,
.remixui_sol.warning a {
.remixui_sol.warning { position: absolute;
} bottom: 0;
right: 0;
.remixui_sol.success { padding: 0.5em;
/* background-color: // styles.rightPanel.message_Success_BackgroundColor; */
} }

@ -78,7 +78,7 @@ export const Renderer = ({ message, opt = {}, plugin }: RendererProps) => {
<div className="close" data-id="renderer" onClick={handleClose}> <div className="close" data-id="renderer" onClick={handleClose}>
<i className="fas fa-times"></i> <i className="fas fa-times"></i>
</div> </div>
<CopyToClipboard content={messageText} className={`far fa-copy ${classList}`} direction={"top"} /> <CopyToClipboard content={messageText} className={` p-0 m-0 far fa-copy ${classList}`} direction={"top"} />
</div>) </div>)
} }
</> </>

Loading…
Cancel
Save