fix big content
This commit is contained in:
1 parent
51debefee5
commit
37fa2b5966
3 files changed
+26
-8
No files matched your search
@@ -34,16 +34,19 @@ const cancel = () => {
|
|||||||
<v-sheet
|
<v-sheet
|
||||||
v-bind="props"
|
v-bind="props"
|
||||||
:class="isHovering ? 'px-0' : 'px-0'"
|
:class="isHovering ? 'px-0' : 'px-0'"
|
||||||
class="py-1 cursor-pointer content-sheet"
|
class="cursor-pointer d-flex ga-1"
|
||||||
@click="startEdit"
|
@click="startEdit"
|
||||||
>
|
>
|
||||||
|
<div class="content-sheet">
|
||||||
{{ text ?? 'click to add content' }}
|
{{ text ?? 'click to add content' }}
|
||||||
|
</div>
|
||||||
|
<v-icon v-if="isHovering" icon="mdi-pencil" size="small" />
|
||||||
</v-sheet>
|
</v-sheet>
|
||||||
</v-hover>
|
</v-hover>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<v-textarea autofocus class="mb-1" hide-details v-model="draft" variant="outlined" auto-grow rows="4" />
|
<v-textarea autofocus class="mb-1" hide-details v-model="draft" variant="outlined" auto-grow rows="4" max-rows="15" />
|
||||||
|
|
||||||
<div class="d-flex justify-end ga-1">
|
<div class="d-flex justify-end ga-1">
|
||||||
<v-btn density="compact" prepend-icon="mdi-cancel" variant="text" text="Cancel" @click="cancel" />
|
<v-btn density="compact" prepend-icon="mdi-cancel" variant="text" text="Cancel" @click="cancel" />
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ defineExpose({
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div v-if="issue" class="pa-4 details">
|
<div v-if="issue" class="pa-4 details">
|
||||||
<div class="d-flex flex-column ga-4">
|
<div class="d-flex flex-column ga-4 details__main">
|
||||||
<div>{{ ckey }}</div>
|
<div>{{ ckey }}</div>
|
||||||
|
|
||||||
<issue-title :text="issue.title" @changed="onTitleChanged" />
|
<issue-title :text="issue.title" @changed="onTitleChanged" />
|
||||||
@@ -124,7 +124,7 @@ defineExpose({
|
|||||||
</v-card-text>
|
</v-card-text>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
|
||||||
<expansion-panel title="Details">
|
<expansion-panel title="Details" class="details__content">
|
||||||
<issue-content :text="issue.content" @changed="onContentChanged" />
|
<issue-content :text="issue.content" @changed="onContentChanged" />
|
||||||
</expansion-panel>
|
</expansion-panel>
|
||||||
</div>
|
</div>
|
||||||
@@ -164,6 +164,20 @@ defineExpose({
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Children keep their content height; only the Details panel shrinks to the space left and scrolls
|
||||||
|
.details__main > * {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.details__content {
|
||||||
|
flex-shrink: 1;
|
||||||
|
min-height: 0;
|
||||||
|
|
||||||
|
:deep(.panel__body) {
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.activity {
|
.activity {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
|||||||
@@ -34,12 +34,13 @@ const cancel = () => {
|
|||||||
<v-sheet
|
<v-sheet
|
||||||
v-bind="props"
|
v-bind="props"
|
||||||
:class="isHovering ? 'px-0' : 'px-0'"
|
:class="isHovering ? 'px-0' : 'px-0'"
|
||||||
class="py-1 cursor-pointer title-sheet"
|
class="cursor-pointer d-flex align-center ga-1"
|
||||||
@click="startEdit"
|
@click="startEdit"
|
||||||
>
|
>
|
||||||
<div class="text-uppercase text-title-large">
|
<div class="text-uppercase text-title-large">
|
||||||
{{ text ?? 'click to write text' }}
|
{{ text ?? 'click to write text' }}
|
||||||
</div>
|
</div>
|
||||||
|
<v-icon v-if="isHovering" icon="mdi-pencil" size="small" />
|
||||||
</v-sheet>
|
</v-sheet>
|
||||||
</v-hover>
|
</v-hover>
|
||||||
</template>
|
</template>
|
||||||
@@ -60,7 +61,7 @@ const cancel = () => {
|
|||||||
// background-color: rgba(var(--v-theme-on-surface), 0.06);
|
// background-color: rgba(var(--v-theme-on-surface), 0.06);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
.v-sheet {
|
//.v-sheet {
|
||||||
transition: padding 0.2s ease-in-out;
|
// transition: padding 0.2s ease-in-out;
|
||||||
}
|
//}
|
||||||
</style>
|
</style>
|
||||||
Reference in new issue
Block a user