From 92b9855ca767402d0f6b4af6ca812470e39271ec Mon Sep 17 00:00:00 2001 From: Don <71207900+VaperinaDEV@users.noreply.github.com> Date: Sun, 16 Jan 2022 13:01:21 +0100 Subject: [PATCH 1/5] Add files via upload --- settings.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 settings.yml diff --git a/settings.yml b/settings.yml new file mode 100644 index 0000000..37c7905 --- /dev/null +++ b/settings.yml @@ -0,0 +1,5 @@ +show_author_username: + type: bool + default: false + description: + en: "Show author username instead profile avatar" From ff4a36444b64a93c7e44c7607ae9019743f6f75c Mon Sep 17 00:00:00 2001 From: Don <71207900+VaperinaDEV@users.noreply.github.com> Date: Sun, 16 Jan 2022 13:02:01 +0100 Subject: [PATCH 2/5] Update desktop.scss --- desktop/desktop.scss | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/desktop/desktop.scss b/desktop/desktop.scss index 3616dab..48033f2 100644 --- a/desktop/desktop.scss +++ b/desktop/desktop.scss @@ -1,9 +1,16 @@ .topic-list .posters { - width: 70px; -} -#suggested-topics table td.author { - width: 70px !important; + width: 70px; } -#suggested-topics .topic-list thead { + +#suggested-topics .topic-list { + .topic-list-header { display: none; + } + .author.topic-list-data { + width: 70px; + } +} + +.topic-list-item .author a { + color: var(--primary-medium); } From 757f31b49a601911ab8397621e0587d9d3a4d431 Mon Sep 17 00:00:00 2001 From: Don <71207900+VaperinaDEV@users.noreply.github.com> Date: Sun, 16 Jan 2022 13:02:28 +0100 Subject: [PATCH 3/5] Update head_tag.html --- desktop/head_tag.html | 91 ++++++++++++++++++++++++------------------- 1 file changed, 51 insertions(+), 40 deletions(-) diff --git a/desktop/head_tag.html b/desktop/head_tag.html index b0785c9..9ba9853 100644 --- a/desktop/head_tag.html +++ b/desktop/head_tag.html @@ -3,15 +3,14 @@ {{#if showParticipants}} {{raw "list/posters-column" posters=topic.participants}} {{/if}} -{{avatar topic.creator imageSize="45"}} {{#if bulkSelectEnabled}} - + {{/if}} - + {{~raw-plugin-outlet name="topic-list-before-status"}} {{~raw "topic-status" topic=topic}} @@ -38,26 +37,36 @@ {{/if}} - + + + {{#if (theme-setting 'show_author_username')}} + {{topic.creator.username}} + {{else}} + {{avatar topic.creator imageSize="45"}} + {{/if}} + + {{raw "list/posts-count-column" topic=topic}} {{#if showLikes}} - + {{#if hasLikes}} - {{number topic.like_count}} {{d-icon "heart"}} - -{{/if}} + {{number topic.like_count}} {{d-icon "heart"}} + + {{/if}} + {{/if}} {{#if showOpLikes}} {{#if hasOpLikes}} - {{number topic.op_like_count}} {{d-icon "heart"}} - -{{/if}} + {{number topic.op_like_count}} {{d-icon "heart"}} + + {{/if}} + {{/if}} {{number topic.views numberKey="views_long"}} @@ -67,11 +76,9 @@ From 8165e0f951771f8320a4b7f676d9a7828bc6c7ed Mon Sep 17 00:00:00 2001 From: Don <71207900+VaperinaDEV@users.noreply.github.com> Date: Sun, 16 Jan 2022 13:03:02 +0100 Subject: [PATCH 4/5] Add files via upload --- mobile/mobile.scss | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 mobile/mobile.scss diff --git a/mobile/mobile.scss b/mobile/mobile.scss new file mode 100644 index 0000000..542a066 --- /dev/null +++ b/mobile/mobile.scss @@ -0,0 +1,26 @@ +.topic-list .topic-list-data { + .hidden-avatar { + + .right { + margin-left: 0; + } + } + .main-link a.title { + padding: 0.5em 0; + + .pull-right.with-username { + margin: 0; + } + } + .pull-right { + &.with-username { + display: flex; + justify-content: space-between; + width: 100%; + } + } + .topic-item-stats { + .category, + .discourse-tags { + margin-bottom: 0.5em; + } + } +} From 4a1bbde2df55547a7453643d05040a3024677c42 Mon Sep 17 00:00:00 2001 From: Don <71207900+VaperinaDEV@users.noreply.github.com> Date: Sun, 16 Jan 2022 13:05:26 +0100 Subject: [PATCH 5/5] Update head_tag.html --- mobile/head_tag.html | 84 ++++++++++++++++++++++++++------------------ 1 file changed, 50 insertions(+), 34 deletions(-) diff --git a/mobile/head_tag.html b/mobile/head_tag.html index 287b2a0..6e6b96b 100644 --- a/mobile/head_tag.html +++ b/mobile/head_tag.html @@ -1,48 +1,64 @@