大家都在关注 6 条改固定三栏网格,修 iPhone 上序号压标题、点赞数截断/掉行(v26110433)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
(function () {
|
||||
var sec = document.getElementById('gcHome');
|
||||
if (!sec) return;
|
||||
var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = 'js/gch/v4.css?v=26110432';
|
||||
var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = 'js/gch/v4.css?v=26110433';
|
||||
document.head.appendChild(l);
|
||||
var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110432';
|
||||
var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110433';
|
||||
s.onload = function () { if (sec.querySelector('.g4-foot')) merge(); else sec.addEventListener('gc4-ready', merge, { once: true }); }; /* v4 要先拉 feed.js 才渲染 */
|
||||
document.body.appendChild(s);
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
function fitMeta() {
|
||||
[].forEach.call(list.querySelectorAll('.g6-meta'), function (m) {
|
||||
var ims = m.querySelectorAll('.g6-avs img'), k = ims.length, nm = m.querySelector('.g6-au b');
|
||||
function tight() { return m.scrollWidth > m.clientWidth + 1 || (nm && nm.scrollWidth > nm.clientWidth + 1); }
|
||||
function tight() { return nm && nm.scrollWidth > nm.clientWidth + 1; } /* 网格版:作者名被挤出省略号就减一个访客头像 */
|
||||
while (k > 2 && tight()) ims[--k].remove();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user