mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
Fix 'always expand CWs' option not applying on timeline views, resolves #179
This commit is contained in:
parent
206e81da10
commit
de3c75689e
4 changed files with 7 additions and 6 deletions
|
@ -346,7 +346,7 @@ let appearNote = $computed(() =>
|
|||
isRenote ? (note.renote as misskey.entities.Note) : note,
|
||||
);
|
||||
const isMyRenote = $i && $i.id === note.userId;
|
||||
const showContent = ref(false);
|
||||
const showContent = ref(defaultStore.state.alwaysExpandCws);
|
||||
const isDeleted = ref(false);
|
||||
const muted = ref(getWordSoftMute(note, $i, defaultStore.state.mutedWords));
|
||||
const translation = ref(null);
|
||||
|
|
|
@ -224,7 +224,7 @@ const noteEl = $ref();
|
|||
const menuButton = ref<HTMLElement>();
|
||||
const renoteButton = ref<InstanceType<typeof XRenoteButton>>();
|
||||
const reactButton = ref<HTMLElement>();
|
||||
const showContent = ref(false);
|
||||
const showContent = ref(defaultStore.state.alwaysExpandCws);
|
||||
const isDeleted = ref(false);
|
||||
const muted = ref(getWordSoftMute(note, $i, defaultStore.state.mutedWords));
|
||||
const translation = ref(null);
|
||||
|
|
|
@ -249,16 +249,16 @@ const urls = props.note.text
|
|||
: null;
|
||||
|
||||
const cwStyle = computed (() => `_cw_style_${defaultStore.state.cwStyle}`);
|
||||
let _showContent = $ref(null);
|
||||
let _showContent = $ref(defaultStore.state.alwaysExpandCws);
|
||||
let showContent = $computed({
|
||||
set(val) { _showContent = val },
|
||||
get() {
|
||||
if (props.forceExpandCw != null) {
|
||||
if (props.forceExpandCw != null && props.detailedView) {
|
||||
_showContent = props.forceExpandCw;
|
||||
props.forceExpandCw = null;
|
||||
}
|
||||
|
||||
return _showContent || false;
|
||||
return _showContent;
|
||||
},
|
||||
})
|
||||
|
||||
|
|
|
@ -414,7 +414,8 @@ watch(
|
|||
advancedMfm,
|
||||
autoplayMfm,
|
||||
expandOnNoteClick,
|
||||
cwStyle
|
||||
cwStyle,
|
||||
alwaysExpandCws
|
||||
],
|
||||
async () => {
|
||||
await reloadAsk();
|
||||
|
|
Loading…
Reference in a new issue