mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-07 21:47:02 +09:00
JS-6188, JS-6187: fix
This commit is contained in:
parent
2a6108d451
commit
ea95c0d875
5 changed files with 12 additions and 6 deletions
6
dist/challenge/index.html
vendored
6
dist/challenge/index.html
vendored
|
@ -21,7 +21,8 @@
|
|||
body { font-family: 'Inter', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; background-color: #fff; color: #252525; }
|
||||
|
||||
.content { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 16px; height: 100%; }
|
||||
.title { font-size: 18px; line-height: 26px; letter-spacing: -0.28px; font-weight: 700; margin: 0px 0px 24px 0px; text-align: center; }
|
||||
.title { font-size: 18px; line-height: 26px; letter-spacing: -0.28px; font-weight: 700; margin: 0px 0px 4px 0px; text-align: center; }
|
||||
.description { font-size: 14px; line-height: 22px; letter-spacing: -0.28px; font-weight: 400; margin: 0px 0px 24px 0px; text-align: center; }
|
||||
|
||||
#challenge { display: flex; align-items: center; justify-content: center; flex-direction: row; gap: 0px 8px; }
|
||||
#challenge .number { background-color: #f2f2f2; border-radius: 12px; font-weight: 700; font-size: 36px; line-height: 40px; padding: 12px; }
|
||||
|
@ -31,6 +32,7 @@
|
|||
<body>
|
||||
<div class="content">
|
||||
<div id="title" class="title"></div>
|
||||
<div id="description" class="description"></div>
|
||||
<div id="challenge"></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
@ -38,6 +40,7 @@
|
|||
const win = $(window);
|
||||
const html = $('html')
|
||||
const title = $('#title');
|
||||
const description = $('#description');
|
||||
const challengeEl = $('#challenge');
|
||||
|
||||
window.Electron.on('challenge', (e, data) => {
|
||||
|
@ -57,6 +60,7 @@
|
|||
contentType: 'application/json',
|
||||
success: data => {
|
||||
title.text(data.challengeTitle);
|
||||
description.text(data.challengeDescription);
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
|
@ -144,14 +144,14 @@ class WindowManager {
|
|||
createChallenge (options) {
|
||||
const { screen } = require('electron');
|
||||
const primaryDisplay = screen.getPrimaryDisplay();
|
||||
const { width } = primaryDisplay.workAreaSize;
|
||||
const { width, height } = primaryDisplay.workAreaSize;
|
||||
|
||||
const win = this.create({}, {
|
||||
backgroundColor: '',
|
||||
width: 424,
|
||||
height: 232,
|
||||
x: Math.floor(width / 2 - 212),
|
||||
y: 50,
|
||||
y: Math.floor(height - 282),
|
||||
titleBarStyle: 'hidden',
|
||||
});
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ window.AnytypeGlobalConfig = {
|
|||
emojiUrl: J.Extension.clipper.emojiUrl,
|
||||
menuBorderTop: 16,
|
||||
menuBorderBottom: 16,
|
||||
flagsMw: { request: true },
|
||||
flagsMw: {},
|
||||
};
|
||||
|
||||
let rootId = '';
|
||||
|
|
|
@ -2227,7 +2227,8 @@
|
|||
"spaceStatus9": "Joining",
|
||||
"spaceStatus10": "Removing",
|
||||
|
||||
"challengeTitle": "Please enter the following numbers in the extension",
|
||||
"challengeTitle": "Grant Limited Access",
|
||||
"challengeDescription": "This extension requires a 4-digit code for limited access to your account. Proceed only if you trust the extension.",
|
||||
"webclipperEmptySelection": "Selection is empty",
|
||||
|
||||
"paymentMethod0": "None",
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
@import "~scss/_mixins";
|
||||
|
||||
.pin { display: flex; flex-direction:row; align-items: center; gap: 0px 8px; }
|
||||
.pin {
|
||||
.input {
|
||||
width: 40px; height: 40px; margin-right: 8px; padding: 0px; text-align: center; vertical-align: top; font-size: var(--font-size-header3);
|
||||
width: 40px; height: 40px; padding: 0px; text-align: center; vertical-align: top; font-size: var(--font-size-header3);
|
||||
border: 1px solid var(--color-shape-primary); border-radius: 2px;
|
||||
}
|
||||
.input.isFocused { box-shadow: 0px 0px 0px 1px var(--color-system-accent-100) inset; border-color: var(--color-system-accent-100); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue