From 1cf1fd37f5353da1e33849f5417245b065a975ba Mon Sep 17 00:00:00 2001 From: veselcraft Date: Sun, 3 Nov 2024 17:15:27 +0300 Subject: [PATCH] fix(feed_settings): make settings layout better --- Web/static/js/al_feed.js | 60 ++++++++++++++++++++++++++++------------ 1 file changed, 42 insertions(+), 18 deletions(-) diff --git a/Web/static/js/al_feed.js b/Web/static/js/al_feed.js index 45605bec3..124514eda 100644 --- a/Web/static/js/al_feed.js +++ b/Web/static/js/al_feed.js @@ -86,23 +86,44 @@ u(document).on('click', '#__feed_settings_link', (e) => { const CURRENT_RETURN_BANNED = Number(__temp_url.searchParams.get('return_banned') ?? 0) const COUNT = [1, 5, 10, 20, 30, 40, 50] u('#_feed_settings_container #__content').html(` -
- ${tr('posts_per_page')}: - -
-
- ${tr('start_from_page')} - -
-
- -
-
- -
+ + + + + + + + + + + + + + + + + + + +
+ ${tr('posts_per_page')} + + +
+ ${tr('start_from_page')} + + +
+ + + + + ${tr('show_ignored_sources')} +
+ + + +
`) u('#_feed_settings_container').on('click', '.final_settings_item input', (e) => { @@ -161,7 +182,10 @@ u(document).on('click', '#__feed_settings_link', (e) => { } if(window.openvk.ignored_list.response.items.length < 1) { - u('#_feed_settings_container #__content').html(tr('no_ignores_count')) + u('#_feed_settings_container #__content').html(` +
+ ${tr('no_ignores_count')} +
`) u('#_remove_ignores').remove() }