Skip to content

Commit

Permalink
style: fix padding and background color
Browse files Browse the repository at this point in the history
  • Loading branch information
kailong502431556 committed Apr 7, 2022
1 parent 18c6bd8 commit f8c9d54
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/components/ContentDetailWrap/src/ContentDetailWrap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ onMounted(() => {
</script>

<template>
<div :class="[`${prefixCls}-container`, 'relative']" ref="contentDetailWrap">
<div :class="[`${prefixCls}-container`, 'relative bg-[#fff]']" ref="contentDetailWrap">
<Sticky :offset="offset">
<div
:class="[
Expand Down
32 changes: 15 additions & 17 deletions src/components/ContentWrap/src/ContentWrap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,20 @@ defineProps({
</script>

<template>
<div style="padding: var(--app-content-padding)">
<ElCard :class="[prefixCls, 'mb-20px']" shadow="never">
<template v-if="title" #header>
<div class="flex items-center">
<span class="text-16px font-700">{{ title }}</span>
<ElTooltip v-if="message" effect="dark" placement="right">
<template #content>
<div class="max-w-200px">{{ message }}</div>
</template>
<Icon class="ml-5px" icon="bi:question-circle-fill" :size="14" />
</ElTooltip>
</div>
</template>
<div>
<slot></slot>
<ElCard :class="[prefixCls, 'mb-20px']" shadow="never">
<template v-if="title" #header>
<div class="flex items-center">
<span class="text-16px font-700">{{ title }}</span>
<ElTooltip v-if="message" effect="dark" placement="right">
<template #content>
<div class="max-w-200px">{{ message }}</div>
</template>
<Icon class="ml-5px" icon="bi:question-circle-fill" :size="14" />
</ElTooltip>
</div>
</ElCard>
</div>
</template>
<div>
<slot></slot>
</div>
</ElCard>
</template>
2 changes: 1 addition & 1 deletion src/layout/components/AppView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const getCaches = computed((): string[] => {
<template>
<section
:class="[
'w-[100%] bg-[var(--app-contnet-bg-color)]',
'p-[var(--app-content-padding)] w-[100%] bg-[var(--app-contnet-bg-color)]',
{
'!min-h-[calc(100%-var(--app-footer-height))]':
fixedHeader && (layout === 'classic' || layout === 'topLeft') && footer,
Expand Down

0 comments on commit f8c9d54

Please sign in to comment.