Skip to content

Commit

Permalink
fix(frontend): もっと見るが見切れる問題
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyme committed Apr 26, 2024
1 parent 95885ba commit e44a64b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/frontend/src/components/MkContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ onUnmounted(() => {

&.omitted {
position: relative;
min-height: 64px; // .fade
max-height: var(--maxHeight);
overflow: hidden;

Expand All @@ -217,7 +218,7 @@ onUnmounted(() => {
bottom: 0;
left: 0;
width: 100%;
height: 64px;
height: 64px; // .omitted
background: linear-gradient(0deg, var(--panel), var(--X15));

> .fadeLabel {
Expand Down
3 changes: 2 additions & 1 deletion packages/frontend/src/components/MkNote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ function emitUpdReaction(emoji: string, delta: number) {

.contentCollapsed {
position: relative;
min-height: 64px; // .collapsed
max-height: 9em;
overflow: hidden; // fallback (overflow: clip)
overflow: clip;
Expand All @@ -808,7 +809,7 @@ function emitUpdReaction(emoji: string, delta: number) {
left: 0;
z-index: 2;
width: 100%;
height: 64px;
height: 64px; // .contentCollapsed
background: linear-gradient(0deg, var(--panel), var(--X15));

&:hover > .collapsedLabel {
Expand Down
3 changes: 2 additions & 1 deletion packages/frontend/src/components/MkOmit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ onUnmounted(() => {

&.omitted {
position: relative;
min-height: 64px; // .fade
max-height: v-bind("props.maxHeight + 'px'");
overflow: hidden;

Expand All @@ -63,7 +64,7 @@ onUnmounted(() => {
bottom: 0;
left: 0;
width: 100%;
height: 64px;
height: 64px; // .omitted
background: linear-gradient(0deg, var(--panel), var(--X15));

> .fadeLabel {
Expand Down
3 changes: 2 additions & 1 deletion packages/frontend/src/components/MkSubNoteContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const collapsed = ref(isLong);

&.collapsed {
position: relative;
min-height: 64px; // .fade
max-height: 9em;
overflow: hidden; // fallback (overflow: clip)
overflow: clip;
Expand All @@ -62,7 +63,7 @@ const collapsed = ref(isLong);
bottom: 0;
left: 0;
width: 100%;
height: 64px;
height: 64px; // .collapsed
background: linear-gradient(0deg, var(--panel), var(--X15));

> .fadeLabel {
Expand Down

0 comments on commit e44a64b

Please sign in to comment.