prevent word break between "on this network" and "and by paired devices" and fix circle center offset
This commit is contained in:
parent
89d5ae3a02
commit
81d36774b5
3 changed files with 13 additions and 4 deletions
|
@ -86,7 +86,10 @@
|
||||||
<use xlink:href="#wifi-tethering" />
|
<use xlink:href="#wifi-tethering" />
|
||||||
</svg>
|
</svg>
|
||||||
<div id="displayName" placeholder=" "></div>
|
<div id="displayName" placeholder=" "></div>
|
||||||
<div class="font-body2">You can be discovered by everyone <span id="on-this-network">on this network</span><span id="and-by-paired-devices" hidden> and by <span id="paired-devices">paired devices</span></span></div>
|
<div class="font-body2">
|
||||||
|
You can be discovered by everyone <span id="on-this-network">on this network</span>
|
||||||
|
<span id="and-by-paired-devices" hidden> and by <span id="paired-devices">paired devices</span></span>
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<!-- Pair Device Dialog -->
|
<!-- Pair Device Dialog -->
|
||||||
<x-dialog id="pairDeviceDialog">
|
<x-dialog id="pairDeviceDialog">
|
||||||
|
|
|
@ -1569,15 +1569,20 @@ Events.on('load', () => {
|
||||||
style.top = 0;
|
style.top = 0;
|
||||||
style.left = 0;
|
style.left = 0;
|
||||||
let ctx = c.getContext('2d');
|
let ctx = c.getContext('2d');
|
||||||
let x0, y0, w, h, dw;
|
let x0, y0, w, h, dw, offset;
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
w = window.innerWidth;
|
w = window.innerWidth;
|
||||||
h = window.innerHeight;
|
h = window.innerHeight;
|
||||||
c.width = w;
|
c.width = w;
|
||||||
c.height = h;
|
c.height = h;
|
||||||
let offset = h > 380 ? 100 : 65;
|
offset = h > 800
|
||||||
offset = h > 800 ? 116 : offset;
|
? 116
|
||||||
|
: h > 380
|
||||||
|
? 100
|
||||||
|
: 65;
|
||||||
|
|
||||||
|
if (w < 420) offset += 20;
|
||||||
x0 = w / 2;
|
x0 = w / 2;
|
||||||
y0 = h - offset;
|
y0 = h - offset;
|
||||||
dw = Math.max(w, h, 1000) / 13;
|
dw = Math.max(w, h, 1000) / 13;
|
||||||
|
|
|
@ -381,6 +381,7 @@ footer .logo {
|
||||||
footer .font-body2 {
|
footer .font-body2 {
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
text-underline-position: under;
|
text-underline-position: under;
|
||||||
|
margin: auto 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#on-this-network {
|
#on-this-network {
|
||||||
|
|
Loading…
Reference in a new issue