Tweak comment history button on mobile

This commit is contained in:
Andy Smith
2026-01-09 10:47:39 -06:00
parent 0d5cc0b30b
commit 03ce900c2e
3 changed files with 24 additions and 10 deletions
+2 -2
View File
@@ -110,7 +110,7 @@
@media (max-width: 639px) {
--btn-size: 3em;
--icon-size: 70%;
--icon-size: 75%;
}
}
@@ -119,7 +119,7 @@
.btn--circle-mobile {
--btn-size: 3em;
--btn-padding: 0;
--icon-size: 70%;
--icon-size: 75%;
aspect-ratio: 1;
inline-size: var(--btn-size);
+21 -7
View File
@@ -74,10 +74,6 @@
.comments--system-expanded .comment-by-system & {
--stripe-color: color-mix(in srgb, var(--card-color) 10%, var(--color-canvas));
}
.comment__history {
background-color: var(--stripe-color);
}
}
.reactions {
@@ -136,11 +132,29 @@
background-color: var(--color-ink-lightest);
}
.comment__permalink-title {
color: currentColor;
opacity: 0.66;
text-decoration: none;
text-transform: capitalize;
@media (max-width: 639px) {
line-height: 1.5lh;
}
}
.comment__history {
background-color: var(--color-ink-lightest);
background-color: transparent;
display: none;
inset: calc(var(--comment-padding-inline) / 2.5) calc(var(--comment-padding-inline) / 1.5) auto auto; margin-inline-end: calc(var(--comment-padding-inline) / -2.5);
inset: var(--comment-padding-block) var(--comment-padding-block) auto auto;
translate: 2px -2px; /* Align baseline with time stamp */
position: absolute;
@media (any-hover: hover) {
&:hover {
background-color: var(--stripe-color);
}
}
}
.comment-by-system {
@@ -158,7 +172,7 @@
display: contents;
.comment__history {
display: grid;
display: inline-flex;
}
}
+1 -1
View File
@@ -14,7 +14,7 @@
<%= link_to comment.creator.name, comment.creator, class: "txt-ink btn btn--plain fill-transparent", data: { turbo_frame: "_top" } %>
</strong>
<%= link_to comment, class: "txt-undecorated txt-ink translucent txt-normal txt-capitalize", data: { turbo_frame: "_top" } do %>
<%= link_to comment, class: "comment__permalink-title", data: { turbo_frame: "_top" } do %>
<%= local_datetime_tag comment.created_at, style: :agoorweekday %>,
<%= local_datetime_tag comment.created_at, style: :time %>
<% end %>