mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-06-25 01:42:05 +00:00
deploy: 8dd888295d
This commit is contained in:
+2
-1
@@ -447,7 +447,8 @@ window.addEventListener('click',(e)=>{
|
||||
|
||||
</head><body><section class="py-10 px-5 mt-[66px]" id="blog-list">
|
||||
<div class="container">
|
||||
<h1 class="text-[38px] text-center font-bold mb-9">Latest news</h1>
|
||||
<h1 class="text-[38px] text-center font-bold mb-2">Latest news</h1>
|
||||
<p class="text-right mb-9"><a class="text-primary-light dark:text-[#70F0F9] text-sm font-medium tracking-[0.03em]" href="/news">Open SimpleX Network News channel</a></p>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1772,6 +1772,10 @@ video {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.\!text-lg {
|
||||
font-size: 1.125rem !important;
|
||||
line-height: 1.75rem !important;
|
||||
|
||||
+26
-3
@@ -260,6 +260,15 @@ const STYLE = `
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.simplex-preview-container .simplex-preview-header-name {
|
||||
background: none;
|
||||
-webkit-background-clip: border-box;
|
||||
background-clip: border-box;
|
||||
color: var(--sp-text);
|
||||
-webkit-text-fill-color: var(--sp-text);
|
||||
text-fill-color: var(--sp-text);
|
||||
}
|
||||
|
||||
.simplex-preview-header-description {
|
||||
font-size: 13px;
|
||||
color: var(--sp-text-secondary);
|
||||
@@ -658,16 +667,18 @@ const STYLE = `
|
||||
min-width: 0;
|
||||
max-width: 640px;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.simplex-preview-info {
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
background: var(--sp-bg);
|
||||
}
|
||||
|
||||
.simplex-preview-scroll-lock {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.simplex-preview-info-close {
|
||||
display: none;
|
||||
}
|
||||
@@ -862,12 +873,13 @@ const STYLE = `
|
||||
.simplex-preview-info {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
top: var(--sp-top-offset, 0px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 100;
|
||||
padding: 16px;
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
.simplex-preview-info.open {
|
||||
display: block;
|
||||
@@ -952,6 +964,13 @@ function initChannelPreview(container) {
|
||||
if (container.dataset.darkBackground) {
|
||||
container.style.setProperty('--sp-dark-bg', container.dataset.darkBackground);
|
||||
}
|
||||
const topOffset = parseInt(container.dataset.topOffset || '0', 10);
|
||||
if (topOffset > 0) {
|
||||
container.style.setProperty('--sp-top-offset', topOffset + 'px');
|
||||
container.style.marginTop = topOffset + 'px';
|
||||
container.style.height = 'calc(100vh - ' + topOffset + 'px)';
|
||||
container.style.height = 'calc(100dvh - ' + topOffset + 'px)';
|
||||
}
|
||||
container.innerHTML = '<p class="simplex-preview-empty">Loading channel...</p>';
|
||||
|
||||
fetchPreview(relayScheme, relayDomains, channelLink, channelId).then(data => {
|
||||
@@ -1051,12 +1070,16 @@ function render(container, data, channelLink, showAppBadges) {
|
||||
if (window.innerWidth < 1000) {
|
||||
info.classList.add('open');
|
||||
main.style.overflow = 'hidden';
|
||||
document.documentElement.classList.add('simplex-preview-scroll-lock');
|
||||
document.body.classList.add('simplex-preview-scroll-lock');
|
||||
}
|
||||
});
|
||||
|
||||
closeBtn.addEventListener('click', () => {
|
||||
info.classList.remove('open');
|
||||
main.style.overflow = '';
|
||||
document.documentElement.classList.remove('simplex-preview-scroll-lock');
|
||||
document.body.classList.remove('simplex-preview-scroll-lock');
|
||||
});
|
||||
|
||||
setupSecretToggles(container);
|
||||
|
||||
+7
-8
@@ -9,6 +9,13 @@
|
||||
|
||||
|
||||
|
||||
const simplexDirectoryDataURL = 'https://directory.simplex.chat/data/';
|
||||
|
||||
// const simplexDirectoryDataURL = 'http://localhost:8080/directory-data/';
|
||||
|
||||
const simplexUsersGroup = 'SimpleX users group';
|
||||
|
||||
(function() {
|
||||
const isMobile = {
|
||||
Android: () => navigator.userAgent.match(/Android/i),
|
||||
iOS: () => navigator.userAgent.match(/iPhone|iPad|iPod/i),
|
||||
@@ -165,14 +172,6 @@ function platformSimplexUri(uri) {
|
||||
return `https://simplex.chat/${linkType}#${fragment}`;
|
||||
}
|
||||
}
|
||||
|
||||
const simplexDirectoryDataURL = 'https://directory.simplex.chat/data/';
|
||||
|
||||
// const simplexDirectoryDataURL = 'http://localhost:8080/directory-data/';
|
||||
|
||||
const simplexUsersGroup = 'SimpleX users group';
|
||||
|
||||
(function() {
|
||||
if (!document.location.pathname.startsWith('/directory')) return;
|
||||
|
||||
let allEntries = [];
|
||||
|
||||
+569
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user