Skip to content

Commit c2ebf1c

Browse files
committed
Neaten up the console a bit more
1 parent 2744280 commit c2ebf1c

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed
Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
<template>
22
<div>
33
<div class="text-xs font-mono">
4-
<div class="rounded-t p-2 bg-black text-grey-lightest overflow-scroll" style="min-height: 16rem;max-height:32rem;">
5-
<span class="block" v-for="line in console">{{line}}</span>
4+
<div class="rounded-t p-2 bg-black overflow-scroll w-full" style="min-height: 16rem;max-height:32rem;">
5+
<div class="mb-2">
6+
<span class="block text-grey-light" v-for="line in console" v-text="line"></span>
7+
</div>
8+
</div>
9+
<div class="rounded-b bg-grey-darkest text-white flex">
10+
<div class="flex-no-shrink p-2">
11+
<span class="font-bold">$</span>
12+
</div>
13+
<div class="w-full">
14+
<input type="text" aria-label="Send console command" class="bg-transparent text-white p-2 pl-0 w-full" placeholder="enter command and press enter to send">
15+
</div>
616
</div>
7-
<div class="rounded-b p-2 bg-grey-darkest text-white">$</div>
817
</div>
918
</div>
1019
</template>
@@ -18,11 +27,5 @@
1827
computed: {
1928
...mapState('server', ['console']),
2029
},
21-
22-
data: function () {
23-
return {
24-
lines: [],
25-
};
26-
}
2730
};
2831
</script>

0 commit comments

Comments
 (0)