Skip to content

Commit 7e9aa63

Browse files
sashasasha
authored andcommitted
multi inputs, and minor UI fixes
1 parent b499e9e commit 7e9aa63

4 files changed

Lines changed: 32 additions & 17 deletions

File tree

src/assets/documents.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
width: auto;
1414
}
1515
}
16+
17+
18+
.full-input {
19+
width: 100%;
20+
}
21+
22+
1623
}
1724
.swal-content__input {
1825
border: 1px solid #8395a7 !important;

src/assets/global.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,12 @@ a.button {
854854
text-decoration: none;
855855
color: #576574 !important;
856856
font-size: 0.8rem;
857+
width: calc(100% - .2em);
858+
}
859+
860+
.multi-input .input.button {
861+
white-space: nowrap;
862+
width: min-content;
857863
}
858864
.multi-input .input:focus {
859865
outline: none;
@@ -863,6 +869,7 @@ a.button {
863869

864870
.multi-input {
865871
height: min-content;
872+
display: flex;
866873
}
867874

868875
.multi-input .input {

src/components/documents.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@
44
<div class="container">
55
<br />
66
<h1>Documents</h1>
7-
<span class="multi-input fullwidth">
8-
<input v-model="search" class="input" type="text" width="100%" placeholder="Search"/>
9-
<a class="button input dark" width="100%">Search</a>
7+
<span class="multi-input">
8+
<input v-model="search" class="input full-input" type="text" placeholder="Search"/>
9+
<a @click="openNewDoc" class="button warning input" width="100%">New Document</a>
1010
</span>
1111
<br />
1212
<br />
13-
<a @click="openNewDoc" class="button warning" width="100%">New Document</a>
13+
1414

1515
<br /> <br />
16-
<div class="box material" style="padding: 2%;" v-if="noDocs">
17-
<h3>It looks like you have no docs.</h3>
18-
<button class="button" @click="openNewDoc">Create a new one!</button>
16+
<div class="box material" style="padding: 2%;" v-if="noDocs">
17+
<h3>It looks like you have no docs.</h3>
18+
<button class="button" @click="openNewDoc">Create a new one!</button>
1919

20-
</div>
21-
<div class="box material" style="padding: 2%; margin-bottom: 2%;" v-if="shareOffers">
22-
<h3>Shared With You:</h3>
20+
</div>
21+
<div class="box material" style="padding: 2%; margin-bottom: 2%;" v-if="shareOffers">
22+
<h3>Shared With You:</h3>
2323

24-
<button @click="openShared(doc)" class="shareOfferDoc button" v-for="doc in shareOffers" :key="doc.docId">
25-
{{doc.name}}
26-
</button>
24+
<button @click="openShared(doc)" class="shareOfferDoc button" v-for="doc in shareOffers" :key="doc.docId">
25+
{{doc.name}}
26+
</button>
2727

28-
</div>
28+
</div>
2929
<router-link v-for="doc in docs" :key="doc.key" :alt="doc.doc.info.title" :to="{ name: 'editor', params: {document: doc.key, user: doc.uid} }" class="document-preview">
3030
<div class="box material hover-deep container">
3131
<h3 >{{doc.doc.info.title}}</h3>

src/components/editor.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
<br />
55
<div class="container">
66
<div class="box container material docInfo">
7-
<span class="multi-input share-multi">
7+
<span class="multi-input">
88
<input @input="saveDoc()" :disabled="opts.readOnly" id="docTitle" v-model="docMeta.title" type="text" class="input">
9+
<button @click="remove" class="button warning input"><i class="fas fa-trash"></i>
10+
</button>
911
</span>
1012
<p v-if="opts.readOnly">Read Only</p>
1113
<div class="share-row">
12-
<button @click="remove" class="button warning" tooltip="Remove Document"><i class="fas fa-trash"></i>
13-
</button>
14+
1415
<div class="share-col">
1516
<span class="user" v-for="user in users" :key="user.uid">
1617
<img :src="user.profile_picture" :alt="user.name" class="round-profile share-item" :tooltip="user.name">

0 commit comments

Comments
 (0)