Skip to content

Commit a6fbda1

Browse files
committed
feat: complete port of css for mentions view
1 parent 880be23 commit a6fbda1

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

src/views/Mentions.vue

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,9 @@
7878
</a>
7979
</div>
8080
</div>
81-
8281
<div class="pagination-simple">
83-
<!-- ui-sref=".({ page: MentionsCtrl.page - 1, limit: MentionsCtrl.limit })"-->
84-
<a v-if="mentionData?.prev" href="">
85-
&#10094; Previous
86-
</a>
87-
<span v-if="!mentionData?.prev">&#10094; Previous</span>
88-
&nbsp;&nbsp;&nbsp;
89-
<a v-if="mentionData?.next"><!--ui-sref=".({ page: MentionsCtrl.page + 1, limit: MentionsCtrl.limit })"-->
90-
Next &#10095;
91-
</a>
92-
<span v-if="!mentionData?.next">Next &#10095;</span>
82+
<button @click="pullPage(-1)" :disabled="!mentionData?.prev">&#10094; Prev</button>
83+
<button @click="pullPage(1)" :disabled="!mentionData?.next">Next &#10095;</button>
9384
</div>
9485
</template>
9586

@@ -152,6 +143,34 @@ export default {
152143
</script>
153144

154145
<style lang="scss">
146+
.mentions {
147+
.pagination-simple {
148+
display: grid;
149+
grid-template-columns: 6rem auto auto;
150+
-moz-column-gap: .5rem;
151+
column-gap: .5rem;
152+
justify-content: end;
153+
}
154+
}
155+
#public-content {
156+
.mentions & {
157+
grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
158+
grid-template-areas:
159+
"header header"
160+
"main sidebar"
161+
"main sidebar";
162+
grid-gap: 2rem;
163+
row-gap: 1rem;
164+
margin-bottom: 2rem;
165+
}
166+
}
167+
.sidebar {
168+
.mention-actions {
169+
.button {
170+
margin: 0 0 1.25rem;
171+
}
172+
}
173+
}
155174
.recent-mentions-header {
156175
display: flex;
157176
align-items: center;

0 commit comments

Comments
 (0)