update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<n-layout has-sider style="height: 100vh">
|
<div class="challenge-layout">
|
||||||
<n-layout-sider width="40%" bordered content-style="height: 100%; overflow: hidden;">
|
<div class="challenge-sider">
|
||||||
<n-tabs v-model:value="activeTab" type="line" class="left-tabs">
|
<n-tabs v-model:value="activeTab" type="line" class="left-tabs">
|
||||||
<template #prefix>
|
<template #prefix>
|
||||||
<n-button text @click="back" style="margin: 0 8px">
|
<n-button text @click="back" style="margin: 0 8px">
|
||||||
@@ -18,8 +18,8 @@
|
|||||||
<PromptPanel />
|
<PromptPanel />
|
||||||
</n-tab-pane>
|
</n-tab-pane>
|
||||||
</n-tabs>
|
</n-tabs>
|
||||||
</n-layout-sider>
|
</div>
|
||||||
<n-layout-content content-style="height: 100%; overflow: hidden;">
|
<div class="challenge-content">
|
||||||
<Preview
|
<Preview
|
||||||
:html="html"
|
:html="html"
|
||||||
:css="css"
|
:css="css"
|
||||||
@@ -29,8 +29,8 @@
|
|||||||
@showCode="showCode = true"
|
@showCode="showCode = true"
|
||||||
@clear="clearAll"
|
@clear="clearAll"
|
||||||
/>
|
/>
|
||||||
</n-layout-content>
|
</div>
|
||||||
</n-layout>
|
</div>
|
||||||
<n-modal
|
<n-modal
|
||||||
v-model:show="showCode"
|
v-model:show="showCode"
|
||||||
preset="card"
|
preset="card"
|
||||||
@@ -124,6 +124,26 @@ onUnmounted(disconnectPrompt)
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.challenge-layout {
|
||||||
|
display: flex;
|
||||||
|
height: 100vh;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.challenge-sider {
|
||||||
|
width: 40%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
border-right: 1px solid var(--n-border-color, #efeff5);
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.challenge-content {
|
||||||
|
flex: 1;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.left-tabs {
|
.left-tabs {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -139,5 +159,4 @@ onUnmounted(disconnectPrompt)
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user