Skip to content

Commit

Permalink
trying to fix settings - test for warning modal when downloading an e…
Browse files Browse the repository at this point in the history
…xecutable file test
  • Loading branch information
ioanmo226 committed Sep 25, 2024
1 parent cff2332 commit 068999f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
23 changes: 12 additions & 11 deletions extension/chrome/elements/attachment.htm
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@
<link rel="stylesheet" href="/css/sweetalert2.css" />
</head>

<body class="attachment" title="PREVIEW" data-test="attachment-container">
<button id="download" data-test="download-attachment" title="DOWNLOAD">
<img src="/img/svgs/download-link.svg" alt="download attachment" width="16" />
</button>
<span class="file-format-holder">
<img id="file-format" src="/img/fileformat/generic.png" alt="png file" />
</span>
<div id="header" data-test="container-attachment-header">
<span></span>
<body title="PREVIEW">
<div id="attachment-container" data-test="attachment-container">
<button id="download" data-test="download-attachment" title="DOWNLOAD">
<img src="/img/svgs/download-link.svg" alt="download attachment" width="16" />
</button>
<span class="file-format-holder">
<img id="file-format" src="/img/fileformat/generic.png" alt="png file" />
</span>
<div id="header" data-test="container-attachment-header">
<span></span>
</div>
<div id="name" data-test="attachment-name"></div>
</div>
<div id="name" data-test="attachment-name"></div>

<script src="/lib/trusted-types.js"></script>
<script src="/lib/purify.js"></script>
<script src="/lib/jquery.min.js"></script>
Expand Down
26 changes: 13 additions & 13 deletions extension/css/cryptup.css
Original file line number Diff line number Diff line change
Expand Up @@ -3007,7 +3007,7 @@ table#compose #error_container_reply_message #error_text_reply_message {
top: -2px;
}

body.attachment {
#attachment-container {
border: 1px solid #dadada;
border-radius: 2px;
text-align: center;
Expand All @@ -3019,11 +3019,11 @@ body.attachment {
cursor: pointer;
}

body.attachment:hover {
#attachment-container:hover {
border-color: #eaeaea;
}

body.attachment.error-occured {
#attachment-container.error-occured {
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -3034,7 +3034,7 @@ body.attachment.error-occured {
cursor: default;
}

body.attachment #download {
#attachment-container #download {
display: flex;
opacity: 0;
position: absolute;
Expand All @@ -3051,25 +3051,25 @@ body.attachment #download {
border: 0;
}

body.attachment:focus-within #download,
body.attachment:hover #download {
#attachment-container:focus-within #download,
#attachment-container:hover #download {
opacity: 1;
}

body.attachment #download:focus {
#attachment-container #download:focus {
box-shadow: 0 0 5px #31a217;
outline: none;
}

body.attachment .download_progress {
#attachment-container .download_progress {
position: absolute;
top: 50%;
margin-top: -6px;
font-weight: bold;
line-height: 1;
}

body.attachment #header {
#attachment-container #header {
height: 90px;
font-weight: 400;
font-size: 14px;
Expand All @@ -3084,12 +3084,12 @@ body.attachment #header {
justify-content: center;
}

body.attachment #type {
#attachment-container #type {
padding: 10px 0;
color: #999;
}

body.attachment #name {
#attachment-container #name {
padding: 7px 12px;
background: #f3f3f3;
position: absolute;
Expand All @@ -3103,7 +3103,7 @@ body.attachment #name {
height: 12px;
}

body.attachment .file-format-holder {
#attachment-container .file-format-holder {
display: inline-block;
border-radius: 120px;
position: absolute;
Expand All @@ -3112,7 +3112,7 @@ body.attachment .file-format-holder {
margin-bottom: 5px;
}

body.attachment .file-format-holder img#file-format {
#attachment-container .file-format-holder img#file-format {
width: 45px;
height: auto;
margin-top: 12px;
Expand Down

0 comments on commit 068999f

Please sign in to comment.