-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10b018f
commit 5681c75
Showing
4 changed files
with
103 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<template> | ||
<div class="list"> | ||
<div class="header"> | ||
<SnippetListActionBar /> | ||
</div> | ||
<div class="body"> | ||
<SnippetListItem | ||
v-for="i in 30" | ||
:key="i" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"></script> | ||
|
||
<style lang="scss" scoped> | ||
.list { | ||
border-right: 1px solid var(--color-border); | ||
display: grid; | ||
grid-template-rows: 50px 1fr; | ||
} | ||
.header { | ||
display: flex; | ||
} | ||
.body { | ||
overflow-y: scroll; | ||
height: calc(100vh - 50px); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<template> | ||
<div class="action"> | ||
<UniconsSearch /> | ||
<input placeholder="Search..."> | ||
<UniconsPlus /> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"></script> | ||
|
||
<style lang="scss" scoped> | ||
.action { | ||
display: flex; | ||
align-items: center; | ||
padding: var(--spacing-xs); | ||
input { | ||
outline: none; | ||
border: none; | ||
width: 100%; | ||
padding: 0 var(--spacing-xs); | ||
} | ||
:deep(svg) { | ||
flex-shrink: 0; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<template> | ||
<div class="item"> | ||
<div class="header"> | ||
<div class="name"> | ||
<span> snippet name </span> | ||
</div> | ||
</div> | ||
<div class="footer"> | ||
<div class="folder"> | ||
folder | ||
</div> | ||
<div class="date"> | ||
19/03/2022 | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"></script> | ||
|
||
<style lang="scss" scoped> | ||
.item { | ||
// height: 100px; | ||
padding: var(--spacing-xs); | ||
border-bottom: 1px solid var(--color-border); | ||
} | ||
.name { | ||
display: table; | ||
table-layout: fixed; | ||
width: 100%; | ||
overflow: hidden; | ||
span { | ||
display: -webkit-box; | ||
-webkit-line-clamp: 1; | ||
-webkit-box-orient: vertical; | ||
} | ||
} | ||
.footer { | ||
font-size: 11px; | ||
display: flex; | ||
justify-content: space-between; | ||
color: var(--color-contrast-medium); | ||
padding-top: var(--spacing-xs); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters