diff --git a/tildes/scss/modules/_topic.scss b/tildes/scss/modules/_topic.scss index 474ee9b..bd96e56 100644 --- a/tildes/scss/modules/_topic.scss +++ b/tildes/scss/modules/_topic.scss @@ -20,7 +20,8 @@ grid-template-areas: "title voting" "metadata voting" - "info actions"; + "info actions" + "action-settings action-settings"; grid-template-columns: 1fr auto; grid-gap: 0.2rem; @@ -37,10 +38,14 @@ position: relative; + // smaller bottom padding to account for the empty .post-action-settings div padding: 0.2rem; + padding-bottom: 0; @media (min-width: $size-sm) { + // smaller bottom padding to account for the empty .post-action-settings div padding: 0.4rem; + padding-bottom: 0.2rem; } font-size: 0.6rem; @@ -49,6 +54,10 @@ grid-area: title; } + .post-action-settings { + grid-area: action-settings; + } + .topic-metadata { grid-area: metadata; } diff --git a/tildes/tildes/templates/intercooler/topic_title_edit.jinja2 b/tildes/tildes/templates/intercooler/topic_title_edit.jinja2 index 117f530..a805e09 100644 --- a/tildes/tildes/templates/intercooler/topic_title_edit.jinja2 +++ b/tildes/tildes/templates/intercooler/topic_title_edit.jinja2 @@ -7,7 +7,7 @@ 'ic_topic', topic_id36=topic.topic_id36, ) }}" - data-ic-target=".topic-full h1:first" + data-ic-target="#topic-{{ topic.topic_id36 }} h1:first" data-js-remove-on-success > diff --git a/tildes/tildes/templates/macros/comments.jinja2 b/tildes/tildes/templates/macros/comments.jinja2 index 299e1d9..353d27f 100644 --- a/tildes/tildes/templates/macros/comments.jinja2 +++ b/tildes/tildes/templates/macros/comments.jinja2 @@ -217,7 +217,7 @@ comment_id36=comment.comment_id36, ) }}" data-ic-swap-style="replace" - data-ic-target="#comment-{{ comment.comment_id36 }} .btn-post:first + .btn-post-settings" + data-ic-target="#comment-{{ comment.comment_id36 }} .btn-post:first + .post-action-settings" >View Markdown @@ -241,7 +241,7 @@ {% endif %} -
+ {% endif %} {% endmacro %} diff --git a/tildes/tildes/templates/macros/topics.jinja2 b/tildes/tildes/templates/macros/topics.jinja2 index af740a7..b7e38fb 100644 --- a/tildes/tildes/templates/macros/topics.jinja2 +++ b/tildes/tildes/templates/macros/topics.jinja2 @@ -203,7 +203,7 @@ {% endmacro %} {% macro topic_actions(topic) %} - {% if request.has_any_permission(("bookmark", "ignore"), topic) %} + {% if request.has_any_permission(("bookmark", "ignore", "edit_title"), topic) %}