-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Add) Forum last edit #4288
base: 8.x.x
Are you sure you want to change the base?
(Add) Forum last edit #4288
Conversation
8c0edf7
to
607de57
Compare
607de57
to
3723887
Compare
d8bcb0c
to
de52951
Compare
26aa46d
to
5a6274a
Compare
ec711d4
to
e5f1341
Compare
dc26a99
to
ff8bacd
Compare
f758bbe
to
d104844
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Added some feedback
@@ -289,8 +310,8 @@ | |||
} | |||
|
|||
.post__header { | |||
grid-template-areas: 'datetime topic . tip-stats overflow' '. . . . toolbar'; | |||
grid-template-columns: auto auto 1fr auto auto; | |||
grid-template-areas: 'datetime edited topic . tip-stats overflow' '. . . . toolbar'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are now 6 columns in the first row but only 5 in the second.
.post__updated-dropdown { | ||
display: none; | ||
background-color: var(--top-nav-dropdown-menu-item-hover-bg); | ||
position: absolute; | ||
padding: 5px; | ||
box-shadow: var(--post-shadow); | ||
border-radius: 5px; | ||
border: var(--bbcode-input-border); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't use non --post-
prefixed colors here. You can add new --post-
colors to every theme if you like. As is, the colors here (taken from top nav and bbcode) don't seem to fit the styles very well either.
grid-template-areas: 'datetime topic . tip-stats toolbar'; | ||
grid-template-columns: auto auto 1fr auto auto; | ||
grid-template-areas: '. . topic . tip-stats toolbar'; | ||
grid-template-columns: auto auto auto 1fr auto auto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can delete the two empty left-most columns here, they're not being used for anything.
• edited | ||
<i class="{{ config('other.font-awesome') }} fa-caret-down"></i> | ||
<div class="post__updated-dropdown"> | ||
{{ $post->updated_at?->diffForHumans() }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be wrapped in a <time>
element and have matching attributes as all the other <time>
elements (namely datetime
and title
of the raw database value)
grid-template-columns: 1fr auto auto; | ||
border-top: 2px solid var(--post-aside-bg); | ||
padding: 4px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
font-size: 13px; | |
} |
grid-template-areas: '. . topic tip-stats overflow' '. . . . toolbar'; | ||
grid-template-columns: auto auto auto 1fr auto auto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The two left-most empty columns can be deleted here.
{ | ||
Schema::table('posts', function (Blueprint $table): void { | ||
$table->unsignedInteger('updated_by')->nullable()->after('updated_at'); | ||
$table->foreign('updated_by')->references('id')->on('users')->cascadeOnUpdate()->cascadeOnDelete(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
null on delete would be better here
Adds "last edited by " to forum posts.
Suggestions for better naming instead of
updatedBy
are welcome.