fix: img-fluid

This commit is contained in:
Barış Soner Uşaklı
2022-09-22 15:43:42 -04:00
parent 179faa2270
commit 9f72f84775
16 changed files with 19 additions and 19 deletions

View File

@@ -89,16 +89,16 @@
"multiparty": "4.2.3",
"nconf": "0.12.0",
"nodebb-plugin-2factor": "6.0.0",
"nodebb-plugin-composer-default": "10.0.0",
"nodebb-plugin-composer-default": "10.0.1",
"nodebb-plugin-dbsearch": "6.0.0",
"nodebb-plugin-emoji": "5.0.2",
"nodebb-plugin-emoji-android": "4.0.0",
"nodebb-plugin-markdown": "11.0.0",
"nodebb-plugin-markdown": "11.0.2",
"nodebb-plugin-mentions": "4.0.1",
"nodebb-plugin-spam-be-gone": "2.0.0",
"nodebb-rewards-essentials": "0.2.1",
"nodebb-theme-persona": "https://github.com/NodeBB/nodebb-theme-persona.git#bootstrap5",
"nodebb-widget-essentials": "7.0.0",
"nodebb-widget-essentials": "7.0.1",
"nodemailer": "6.7.8",
"nprogress": "0.2.0",
"passport": "0.6.0",

View File

@@ -7,7 +7,7 @@ define('forum/account/best', ['forum/account/header', 'forum/account/posts'], fu
Best.init = function () {
header.init();
$('[component="post/content"] img:not(.not-responsive)').addClass('img-responsive');
$('[component="post/content"] img:not(.not-responsive)').addClass('img-fluid');
posts.handleInfiniteScroll('account/best');
};

View File

@@ -7,7 +7,7 @@ define('forum/account/bookmarks', ['forum/account/header', 'forum/account/posts'
Bookmarks.init = function () {
header.init();
$('[component="post/content"] img:not(.not-responsive)').addClass('img-responsive');
$('[component="post/content"] img:not(.not-responsive)').addClass('img-fluid');
posts.handleInfiniteScroll('account/bookmarks');
};

View File

@@ -7,7 +7,7 @@ define('forum/account/downvoted', ['forum/account/header', 'forum/account/posts'
Downvoted.init = function () {
header.init();
$('[component="post/content"] img:not(.not-responsive)').addClass('img-responsive');
$('[component="post/content"] img:not(.not-responsive)').addClass('img-fluid');
posts.handleInfiniteScroll('account/downvoted');
};

View File

@@ -10,7 +10,7 @@ define('forum/account/posts', ['forum/account/header', 'forum/infinitescroll', '
AccountPosts.init = function () {
header.init();
$('[component="post/content"] img:not(.not-responsive)').addClass('img-responsive');
$('[component="post/content"] img:not(.not-responsive)').addClass('img-fluid');
AccountPosts.handleInfiniteScroll('account/posts');
};
@@ -43,7 +43,7 @@ define('forum/account/posts', ['forum/account/header', 'forum/infinitescroll', '
function onPostsLoaded(posts, callback) {
app.parseAndTranslate(template, 'posts', { posts: posts }, function (html) {
$('[component="posts"]').append(html);
html.find('img:not(.not-responsive)').addClass('img-responsive');
html.find('img:not(.not-responsive)').addClass('img-fluid');
html.find('.timeago').timeago();
utils.makeNumbersHumanReadable(html.find('.human-readable-number'));
hooks.fire('action:posts.loaded', { posts: posts });

View File

@@ -23,7 +23,7 @@ define('forum/account/profile', [
};
function processPage() {
$('[component="posts"] [component="post/content"] img:not(.not-responsive), [component="aboutme"] img:not(.not-responsive)').addClass('img-responsive');
$('[component="posts"] [component="post/content"] img:not(.not-responsive), [component="aboutme"] img:not(.not-responsive)').addClass('img-fluid');
}
function onUserStatusChange(data) {

View File

@@ -7,7 +7,7 @@ define('forum/account/upvoted', ['forum/account/header', 'forum/account/posts'],
Upvoted.init = function () {
header.init();
$('[component="post/content"] img:not(.not-responsive)').addClass('img-responsive');
$('[component="post/content"] img:not(.not-responsive)').addClass('img-fluid');
posts.handleInfiniteScroll('account/upvoted');
};

View File

@@ -46,7 +46,7 @@ define('forum/categories', ['components', 'categorySelector', 'hooks'], function
const recentPosts = category.find('[component="category/posts"]');
app.parseAndTranslate('partials/categories/lastpost', 'posts', { posts: [post] }, function (html) {
html.find('.post-content img:not(.not-responsive)').addClass('img-responsive');
html.find('.post-content img:not(.not-responsive)').addClass('img-fluid');
html.hide();
if (recentPosts.length === 0) {
html.appendTo(category);

View File

@@ -166,7 +166,7 @@ define('forum/chats', [
html = $(html);
el.prepend(html);
html.find('.timeago').timeago();
html.find('img:not(.not-responsive)').addClass('img-responsive');
html.find('img:not(.not-responsive)').addClass('img-fluid');
el.scrollTop((el[0].scrollHeight - previousHeight) + currentScrollTop);
loading = false;
});

View File

@@ -76,7 +76,7 @@ define('forum/chats/messages', [
const isAtBottom = messages.isAtBottom(chatContentEl);
newMessage.appendTo(chatContentEl);
newMessage.find('.timeago').timeago();
newMessage.find('img:not(.not-responsive)').addClass('img-responsive');
newMessage.find('img:not(.not-responsive)').addClass('img-fluid');
if (isAtBottom) {
messages.scrollToBottom(chatContentEl);
}

View File

@@ -67,7 +67,7 @@ define('forum/groups/details', [
handleMemberInvitations();
components.get('groups/activity').find('.content img:not(.not-responsive)').addClass('img-responsive');
components.get('groups/activity').find('.content img:not(.not-responsive)').addClass('img-fluid');
detailsPage.on('click', '[data-action]', function () {
const btnEl = $(this);

View File

@@ -101,7 +101,7 @@ define('forum/post-queue', [
return false;
});
$('[component="post/content"] img:not(.not-responsive)').addClass('img-responsive');
$('[component="post/content"] img:not(.not-responsive)').addClass('img-fluid');
};
function confirmReject(msg) {

View File

@@ -138,7 +138,7 @@ define('forum/topic/events', [
if (data.post.changed) {
editedPostEl.fadeOut(250, function () {
editedPostEl.html(translator.unescape(data.post.content));
editedPostEl.find('img:not(.not-responsive)').addClass('img-responsive');
editedPostEl.find('img:not(.not-responsive)').addClass('img-fluid');
images.wrapImagesInLinks(editedPostEl.parent());
posts.addBlockquoteEllipses(editedPostEl.parent());
editedPostEl.fadeIn(250);

View File

@@ -286,7 +286,7 @@ define('forum/topic/posts', [
images.wrapImagesInLinks(posts);
hideDuplicateSignatures(posts);
Posts.showBottomPostBar();
posts.find('[component="post/content"] img:not(.not-responsive)').addClass('img-responsive');
posts.find('[component="post/content"] img:not(.not-responsive)').addClass('img-fluid');
Posts.addBlockquoteEllipses(posts);
hidePostToolsForDeletedPosts(posts);
addNecroPostMessage();

View File

@@ -337,7 +337,7 @@ define('search', ['translator', 'storage', 'hooks', 'alerts'], function (transla
});
});
$('.search-result-text').find('img:not(.not-responsive)').addClass('img-responsive');
$('.search-result-text').find('img:not(.not-responsive)').addClass('img-fluid');
};
return Search;

View File

@@ -37,7 +37,7 @@ module.exports.render = function (template) {
area = $('#content [widget-area="' + location + '"],#content [data-widget-area="' + location + '"]').eq(0);
if (html && area.length) {
area.html(html);
area.find('img:not(.not-responsive)').addClass('img-responsive');
area.find('img:not(.not-responsive)').addClass('img-fluid');
}
if (widgetsAtLocation.length) {