more logic for title columns
This commit is contained in:
@@ -68,8 +68,12 @@ export default {
|
||||
if (context.topic.pinned || context.topic.pinned_globally) {
|
||||
classes.push("--pinned");
|
||||
}
|
||||
if (context.topic.is_hot) {
|
||||
classes.push("--hot");
|
||||
if (
|
||||
context.topic.is_hot ||
|
||||
context.topic.pinned ||
|
||||
context.topic.pinned_globally
|
||||
) {
|
||||
classes.push("--has-status-card");
|
||||
}
|
||||
return classes;
|
||||
}
|
||||
|
||||
@@ -170,11 +170,17 @@
|
||||
td.main-link .link-top-line {
|
||||
font-size: var(--font-0);
|
||||
grid-row: 1/2;
|
||||
grid-column: 1/-2;
|
||||
grid-column: 1/-1;
|
||||
font-weight: 500;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
&.--has-status-card {
|
||||
td.main-link .link-top-line {
|
||||
grid-column: 1/-2;
|
||||
}
|
||||
}
|
||||
|
||||
.link-top-line .event-date {
|
||||
margin-left: 0.5em;
|
||||
font-size: var(--font-down-3);
|
||||
|
||||
Reference in New Issue
Block a user