This commit is contained in:
lzp
2026-03-06 15:50:06 +08:00
12 changed files with 50 additions and 23 deletions

View File

@@ -84,3 +84,10 @@
font-display: swap; font-display: swap;
font-style: normal; font-style: normal;
} }
@font-face {
font-family: 'MSemiBold';
src:url('../fonts/MazzardL-SemiBold.otf') format('opentype');
font-weight: 700;
font-display: swap;
font-style: normal;
}

Binary file not shown.

View File

@@ -83,7 +83,7 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
user-select: none; user-select: none;
gap: 1.4rem; gap: 1.2rem;
> .line { > .line {
width: 0; width: 0;
height: 100%; height: 100%;

View File

@@ -12,7 +12,7 @@
<svg-icon name="download" size="20" size-unit="px" /> <svg-icon name="download" size="20" size-unit="px" />
</span> </span>
<button class="edit"> <button class="edit">
<span class="icon"><svg-icon name="edit" size="11" /></span> <span class="icon"><svg-icon name="edit" size="13" /></span>
<span class="text">Edit</span> <span class="text">Edit</span>
</button> </button>
</div> </div>
@@ -183,7 +183,7 @@
height: 30px; height: 30px;
border-radius: 4px; border-radius: 4px;
border: none; border: none;
background-color: #ff7a51; background-color: #ED8936;
color: #fff; color: #fff;
font-size: 12px; font-size: 12px;
display: flex; display: flex;

View File

@@ -19,7 +19,8 @@
modelValue: { type: String }, modelValue: { type: String },
list: { list: {
type: Array, type: Array,
default: () => ['1:1', '4:3', '3:4', '16:9'] default: () => ['1:1', '4:3']
// default: () => ['1:1', '4:3', '3:4', '16:9']
} }
}) })
const data = reactive({}) const data = reactive({})
@@ -47,10 +48,10 @@
font-size: 12px; font-size: 12px;
color: #7c7c7c; color: #7c7c7c;
height: 21px; height: 21px;
flex: 1;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 0 8px;
&.active { &.active {
border-radius: 4px; border-radius: 4px;
background-color: #fff; background-color: #fff;
@@ -58,7 +59,7 @@
&::before { &::before {
content: ''; content: '';
border-radius: 1px; border-radius: 1px;
border: 1px solid #7c7c7c; border: 1.2px solid #7c7c7c;
width: calc(var(--w) / max(var(--w), var(--h)) * 10px); width: calc(var(--w) / max(var(--w), var(--h)) * 10px);
height: calc(var(--h) / max(var(--w), var(--h)) * 10px); height: calc(var(--h) / max(var(--w), var(--h)) * 10px);
margin-right: 4px; margin-right: 4px;

View File

@@ -74,8 +74,11 @@
justify-content: center; justify-content: center;
box-shadow: 0px 0.75px 0px 0px rgba(0, 0, 0, 0.02); box-shadow: 0px 0.75px 0px 0px rgba(0, 0, 0, 0.02);
min-width: 39px; min-width: 39px;
height: 13px; // height: 13px;
border-radius: 2.3px; border-radius: 2.3px;
width: 56px;
text-align: center;
line-height: 18px;
background-color: #fff; background-color: #fff;
font-size: 6px; font-size: 6px;
color: #000; color: #000;

View File

@@ -126,9 +126,9 @@ export default {
chooseStyle: 'Choose Style', chooseStyle: 'Choose Style',
setting: 'Setting', setting: 'Setting',
settingOptions: { settingOptions: {
creativity: 'Creativity', first: 'Image strength',
diversity: 'Diversity', second: 'Region strength',
relevance: 'Relevance' third: 'Style strength'
}, },
confirm: 'Confirm', confirm: 'Confirm',
styleTitle: 'Settings', styleTitle: 'Settings',

View File

@@ -120,9 +120,9 @@ export default {
chooseStyle: '选择风格', chooseStyle: '选择风格',
setting: 'Setting', setting: 'Setting',
settingOptions: { settingOptions: {
creativity: '创意度', first: '图像强度',
diversity: '多样性', second: '区域强度',
relevance: '相关度' third: '风格强度'
}, },
confirm: '确认', confirm: '确认',
styleTitle: '设置', styleTitle: '设置',

View File

@@ -490,7 +490,7 @@
// width: 39%; // width: 39%;
// width: 63.4rem; // width: 63.4rem;
// flex: 1; // flex: 1;
width: 634px; width: 67.4rem;
margin-right: 2.7rem; margin-right: 2.7rem;
background-color: #fff; background-color: #fff;
border-radius: 2rem; border-radius: 2rem;
@@ -516,9 +516,9 @@
row-gap: 2.4rem; row-gap: 2.4rem;
.assist-input-wrapper { .assist-input-wrapper {
width: 100%; width: 100%;
height: 14.4rem; // height: 14.4rem;
min-height: 14.4rem !important; min-height: 14.4rem !important;
max-height: 14.4rem !important; max-height: 18.1rem !important;
} }
} }
.input-wrapper { .input-wrapper {

View File

@@ -132,7 +132,7 @@ const {} = toRefs(data)
:with-header="false" :with-header="false"
> >
<div class="versionTreeTitle"> <div class="versionTreeTitle">
<span>Version Tree: Retro Sofa Sketch</span> <span>Version Tree</span>
<div class="closeBtn" @click="versionTreeData.drawer = false"> <div class="closeBtn" @click="versionTreeData.drawer = false">
<div class="closeIcon"> <div class="closeIcon">
<SvgIcon name="close" /> <SvgIcon name="close" />
@@ -219,7 +219,7 @@ const {} = toRefs(data)
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-radius: 8px; border-radius: .8rem;
border: 1.5px solid #D9D9D9; border: 1.5px solid #D9D9D9;
color: rgba(0, 0, 0, 0.6); color: rgba(0, 0, 0, 0.6);
> .versionExport{ > .versionExport{

View File

@@ -31,7 +31,7 @@
const route = useRoute() const route = useRoute()
const projectStore = useProjectStore() const projectStore = useProjectStore()
const agentTitle = ref('Retro Sofa Sketch') const agentTitle = ref('Conversation')
const previewType = ref<'sketch' | 'report'>('sketch') const previewType = ref<'sketch' | 'report'>('sketch')
const VersionTreeIndexRef = ref() const VersionTreeIndexRef = ref()
const agentRef = ref() const agentRef = ref()
@@ -66,6 +66,9 @@
if (res) agentRef.value.setChatInfo(res) if (res) agentRef.value.setChatInfo(res)
let data = res?.project || res let data = res?.project || res
if (data?.latestNodeId) data.nodeId = data.latestNodeId if (data?.latestNodeId) data.nodeId = data.latestNodeId
if (data) {
agentTitle.value = data.name
}
projectStore.setProject({ projectStore.setProject({
...data ...data
}) })

View File

@@ -521,9 +521,9 @@
const settingPopupVisible = ref(false) const settingPopupVisible = ref(false)
const settingOptions = ref([ const settingOptions = ref([
{ label: 'Input.settingOptions.creativity', value: 50 }, { label: 'Input.settingOptions.first', value: 50 },
{ label: 'Input.settingOptions.diversity', value: 50 }, { label: 'Input.settingOptions.second', value: 50 },
{ label: 'Input.settingOptions.relevance', value: 50 } { label: 'Input.settingOptions.third', value: 50 }
]) ])
const openStylePopup = () => { const openStylePopup = () => {
@@ -627,6 +627,9 @@
margin: 0 auto; margin: 0 auto;
padding: 0; padding: 0;
position: relative; position: relative;
.animate-container {
overflow-y: hidden;
}
&:not(.agent) .animate-container { &:not(.agent) .animate-container {
box-shadow: 0px 0.5rem 1.4rem 0px #0000001a; box-shadow: 0px 0.5rem 1.4rem 0px #0000001a;
@@ -661,6 +664,16 @@
line-height: 1.5; line-height: 1.5;
white-space: pre-wrap; white-space: pre-wrap;
word-wrap: break-word; word-wrap: break-word;
&::-webkit-scrollbar {
width: 0;
display: none;
}
&::-webkit-scrollbar-thumb {
display: none;
}
&::-webkit-scrollbar-track {
display: none;
}
// 占位符 // 占位符
&:empty::before { &:empty::before {
@@ -779,7 +792,7 @@
width: 13rem; width: 13rem;
color: #fff; color: #fff;
border-radius: 4.2rem; border-radius: 4.2rem;
font-family: 'Mazzard'; font-family: 'MSemiBold';
font-weight: 600; font-weight: 600;
font-size: 1.28rem; font-size: 1.28rem;
cursor: pointer; cursor: pointer;