mirror of
https://github.com/d0zingcat/BroadcastChannel.git
synced 2026-05-13 23:16:46 +00:00
refactor(emoji): adjust spacing for better alignment
Improved spacing around emojis in multiple components to enhance visual consistency and readability. Simplified the selector for content modification in the Telegram library function for better maintainability.
This commit is contained in:
@@ -126,6 +126,7 @@ const staticProxy = getEnv(import.meta.env, Astro, 'STATIC_PROXY') ?? '/static/'
|
||||
|
||||
& :global(.emoji) {
|
||||
font-style: normal;
|
||||
margin-right: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -178,6 +178,7 @@ const timeago = datetime.isBefore(dayjs().subtract(1, 'w'))
|
||||
|
||||
.content :global(.emoji) {
|
||||
font-style: normal;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.tag-box {
|
||||
|
||||
@@ -65,7 +65,7 @@ function modifyHTMLContent($, content) {
|
||||
|
||||
function getPost($, item, { channel, staticProxy, index = 0 }) {
|
||||
item = item ? $(item).find('.tgme_widget_message') : $('.tgme_widget_message')
|
||||
const content = modifyHTMLContent($, $(item).find('.tgme_widget_message_bubble > .tgme_widget_message_text'))
|
||||
const content = modifyHTMLContent($, $(item).find('.tgme_widget_message_text'))
|
||||
const title = content?.text()?.match(/[^。\n]*(?=[。\n]|http)/g)?.[0] ?? content?.text() ?? ''
|
||||
const id = $(item).attr('data-post')?.replace(`${channel}/`, '')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user