Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: details ui update #27

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions frontend/src/components/appintro/AppIntroItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
(linkArray && linkArray.length > 0) ||
(contentArray && contentArray.length > 0)
"
class="info-item-root row justify-between items-start"
class="info-item-root row justify-between items-start no-wrap"
>
<div class="info-title col-5 text-body2 text-ink-3">{{ title }}</div>
<expend-text-view v-if="content" :text="content" />
<div v-else-if="link" class="info_link col-5" @click="emit('onLinkClick')">
<div v-else-if="link" class="info_link col-7" @click="emit('onLinkClick')">
{{ link }}
</div>
<div
v-else-if="contentArray"
class="info-content text-body2 text-ink-2 col-5"
class="info-content text-body2 text-ink-2 col-7"
>
{{ contentArray.join(separator) }}
</div>
<div v-else-if="linkArray" class="column justify-end col-5">
<div v-else-if="linkArray" class="column justify-end col-7">
<div
v-for="(item, index) in linkArray"
:key="index"
Expand Down Expand Up @@ -93,7 +93,7 @@ const openUrl = (url: string) => {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

Expand All @@ -102,7 +102,7 @@ const openUrl = (url: string) => {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

Expand Down
6 changes: 3 additions & 3 deletions frontend/src/pages/application/AppDetailPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@
item && item.requiredDisk
? getValueByUnit(
item.requiredDisk,
getSuitableUnit(item.requiredDisk, 'disk')
getSuitableUnit(item.requiredDisk, 'memory')
)
: '-'
"
:unit="
item && item.requiredDisk
? getSuitableUnit(item.requiredDisk, 'disk')
? getSuitableUnit(item.requiredDisk, 'memory')
: '-'
"
/>
Expand Down Expand Up @@ -760,7 +760,7 @@ const getWebsite = () => {
const url = new URL(item.value?.website);
show = url.hostname;
} catch (e) {
// console.log(e);
console.log(e);
}

data.push({ text: show, url: item.value.website });
Expand Down
Loading