Skip to content

Commit 1d1b4f8

Browse files
committed
clean up html and css
1 parent a276a82 commit 1d1b4f8

File tree

6 files changed

+94
-53
lines changed

6 files changed

+94
-53
lines changed

src/backend/src/html_head.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function html_head(options) {
2929
html += `<meta charset="utf-8">`;
3030
html += `<meta name="viewport" content="width=device-width, initial-scale=1">`;
3131
html += `<meta name="description" content="${encode(options.meta_description ?? '')}">`;
32+
html += `<meta name="referrer" content="no-referrer">`;
3233
// title
3334
html += `<title>${encode(options.title ?? 'Puter')}</title>`;
3435
// favicons

src/gui/src/UI/UIWindowProgress.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function UIWindowProgress({
4545
// spinner
4646
h += `<svg style="overflow: visible;" xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24"><title>circle anim</title><g fill="#212121" class="nc-icon-wrapper"><g class="nc-loop-circle-24-icon-f"><path d="M12 24a12 12 0 1 1 12-12 12.013 12.013 0 0 1-12 12zm0-22a10 10 0 1 0 10 10A10.011 10.011 0 0 0 12 2z" fill="#212121" opacity=".4"></path><path d="M24 12h-2A10.011 10.011 0 0 0 12 2V0a12.013 12.013 0 0 1 12 12z" data-color="color-2"></path></g><style>.nc-loop-circle-24-icon-f{--animation-duration:0.5s;transform-origin:12px 12px;animation:nc-loop-circle-anim var(--animation-duration) infinite linear}@keyframes nc-loop-circle-anim{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}</style></g></svg>`;
4747
// Progress report
48-
h += `<div style="font-size:15px; overflow: hidden; flex-grow: 1; text-overflow: ellipsis; white-space: nowrap;">
48+
h += `<div class="progress-report">
4949
<span class="progress-msg">${i18n('preparing')}</span>`;
5050
if (show_progress) {
5151
h += ` (<span class="progress-percent">0%</span>)`;
@@ -68,7 +68,7 @@ async function UIWindowProgress({
6868
// Alert icon
6969
h += `<img style="width:24px; height:24px;" src="${html_encode(window.icons['warning-sign.svg'])}" />`;
7070
// Progress report
71-
h += `<div style="font-size:15px; overflow: hidden; flex-grow: 1; text-overflow: ellipsis; white-space: nowrap;">
71+
h += `<div class="progress-report">
7272
<span class="progress-error-title"></span>`;
7373
h += `</div>`;
7474
h += `</div>`;

src/gui/src/UI/UIWindowRefer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function UIWindowRefer(options){
2828
h += `<div>`;
2929
h += `<div class="qr-code-window-close-btn generic-close-window-button disable-user-select"> &times; </div>`;
3030
h += `<img src="${window.icons['present.svg']}" style="width: 70px; margin: 20px auto 20px; display: block; margin-bottom: 20px;">`;
31-
h += `<p style="text-align: center; font-size: 16px; padding: 20px; font-weight: 400; margin: -10px 10px 20px 10px; -webkit-font-smoothing: antialiased; color: #5f626d;">${i18n('refer_friends_c2a')}</p>`;
31+
h += `<p class="refer-friend-c2a">${i18n('refer_friends_c2a')}</p>`;
3232
h += `<label style="font-weight: bold;">${i18n('invite_link')}</label>`;
3333
h += `<input type="text" style="margin-bottom:10px;" class="downloadable-link" readonly />`;
3434
h += `<button class="button button-primary copy-downloadable-link" style="white-space:nowrap; text-align:center;">${i18n('copy_link')}</button>`

src/gui/src/UI/UIWindowSearch.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,6 @@ $(document).on('click', '.search-result', async function(e){
170170
uid: fsuid,
171171
is_dir: is_dir,
172172
app: 'explorer',
173-
// top: options.maximized ? 0 : undefined,
174-
// left: options.maximized ? 0 : undefined,
175-
// height: options.maximized ? `calc(100% - ${window.taskbar_height + window.toolbar_height + 1}px)` : undefined,
176-
// width: options.maximized ? `100%` : undefined,
177173
});
178174

179175
// close search window

src/gui/src/UI/UIWindowShare.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import UIWindow from './UIWindow.js'
2121
async function UIWindowShare(items, recipient){
2222
return new Promise(async (resolve) => {
2323
let h = '';
24-
h += `<div style="padding: 30px 40px 20px; border-bottom: 1px solid #ced7e1;">`;
24+
h += `<div class="sharing-form">`;
2525
h += `<div class="generic-close-window-button" style="margin: 5px;"> &times; </div>`;
2626

2727
//------------------------------------------------
@@ -62,7 +62,7 @@ async function UIWindowShare(items, recipient){
6262
// ------------------------------------------------
6363
// Item Name
6464
// ------------------------------------------------
65-
h += `<h2 style="font-size: 17px; margin-top:0; text-align:center; margin-bottom: 40px; font-weight: 400; color: #303d49;">`;
65+
h += `<h2 class="sharing-item-name">`;
6666
h += `Share <strong>${html_encode(items[0].name)}</strong>`;
6767
if(items.length > 1)
6868
h += ` and ${items.length - 1} other item${items.length > 2 ? 's' : ''}`;
@@ -95,7 +95,7 @@ async function UIWindowShare(items, recipient){
9595
// ------------------------------------------------
9696
// Already Shared With
9797
// ------------------------------------------------
98-
h += `<p style="font-size: 14px; margin-bottom: 0px; color: #303d49; text-shadow: 1px 1px white;">${i18n('People with access')}</p>`;
98+
h += `<p>${i18n('People with access')}</p>`;
9999
h += `<div class="share-recipients hide-scrollbar">`;
100100
h += `</div>`;
101101
h += `</div>`;

0 commit comments

Comments
 (0)