i apologize to all the cats that may have been harmed before this commit (#10342)

This commit is contained in:
Freeplay 2023-06-21 14:22:04 -04:00
parent 822c9f0d63
commit 9d734e2019
2 changed files with 13 additions and 15 deletions

View File

@ -630,9 +630,10 @@ defineExpose({
.note-context {
position: relative;
z-index: 2;
padding: 0 32px 0 32px;
display: flex;
background: var(--panel);
z-index: 1;
&:first-child {
margin-top: 20px;
}
@ -716,7 +717,8 @@ defineExpose({
> .article {
position: relative;
overflow: clip;
padding: 4px 32px 10px;
padding: 20px 32px 10px;
margin-top: -16px;
&:first-child,
&:nth-child(2) {
@ -730,6 +732,8 @@ defineExpose({
.header-container {
display: flex;
position: relative;
z-index: 2;
> .avatar {
flex-shrink: 0;
display: block;

View File

@ -210,19 +210,13 @@ const emit = defineEmits<{
const cwButton = ref<HTMLElement>();
const showMoreButton = ref<HTMLElement>();
const isLong = !props.detailedView && props.note.cw == null &&
(
(
props.note.text != null &&
(
props.note.text.split("\n").length > 10 ||
props.note.text.length > 800
)
) ||
props.note.files.length > 4
)
;
const isLong =
!props.detailedView &&
props.note.cw == null &&
((props.note.text != null &&
(props.note.text.split("\n").length > 10 ||
props.note.text.length > 800)) ||
props.note.files.length > 4);
const collapsed = $ref(props.note.cw == null && isLong);
const urls = props.note.text