Merge pull request 'Fix polls & own reactions not showing in replies' (#10199) from Freeplay/calckey:notes into develop

Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10199
This commit is contained in:
Kainoa Kanter 2023-05-25 20:50:57 +00:00
commit 6383babe04
4 changed files with 11 additions and 11 deletions

View file

@ -236,6 +236,12 @@ export const NoteRepository = db.getRepository(Note).extend({
uri: note.uri || undefined, uri: note.uri || undefined,
url: note.url || undefined, url: note.url || undefined,
updatedAt: note.updatedAt?.toISOString() || undefined, updatedAt: note.updatedAt?.toISOString() || undefined,
poll: note.hasPoll ? populatePoll(note, meId) : undefined,
...(meId
? {
myReaction: populateMyReaction(note, meId, options?._hint_),
}
: {}),
...(opts.detail ...(opts.detail
? { ? {
@ -252,14 +258,6 @@ export const NoteRepository = db.getRepository(Note).extend({
_hint_: options?._hint_, _hint_: options?._hint_,
}) })
: undefined, : undefined,
poll: note.hasPoll ? populatePoll(note, meId) : undefined,
...(meId
? {
myReaction: populateMyReaction(note, meId, options?._hint_),
}
: {}),
} }
: {}), : {}),
}); });

View file

@ -59,7 +59,7 @@ defineExpose({
<style lang="scss" scoped> <style lang="scss" scoped>
._button { ._button {
font-weight: 700; font-weight: 700;
z-index: 2; z-index: 5;
> span { > span {
background: var(--cwBg) !important; background: var(--cwBg) !important;
color: var(--cwFg); color: var(--cwFg);

View file

@ -569,7 +569,7 @@ onUnmounted(() => {
background: var(--panelHighlight); background: var(--panelHighlight);
border-radius: var(--radius); border-radius: var(--radius);
opacity: 0; opacity: 0;
transition: opacity 0.2s; transition: opacity 0.2s, background 0.2s;
z-index: -1; z-index: -1;
} }
&.reply-to { &.reply-to {
@ -604,6 +604,7 @@ onUnmounted(() => {
--panel: var(--panelHighlight); --panel: var(--panelHighlight);
&::before { &::before {
opacity: 1; opacity: 1;
background: var(--panelHighlight) !important;
} }
} }
// @media (pointer: coarse) { // @media (pointer: coarse) {
@ -623,6 +624,7 @@ onUnmounted(() => {
&::before { &::before {
outline: auto; outline: auto;
opacity: 1; opacity: 1;
background: none;
} }
} }

View file

@ -41,7 +41,7 @@ defineExpose({
bottom: 0; bottom: 0;
left: 0; left: 0;
width: 100%; width: 100%;
z-index: 2; z-index: 5;
> span { > span {
display: inline-block; display: inline-block;
background: var(--panel); background: var(--panel);