mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
i apologize to all the cats that may have been harmed before this commit (#10342)
This commit is contained in:
parent
822c9f0d63
commit
9d734e2019
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user