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); } 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 @@ 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 @@ 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; + } + } +} 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"