Skip to content

Commit 4d20361

Browse files
committed
fix : fix the style of api key box
1 parent 5fed4c7 commit 4d20361

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

src/frontend/src/components/ApiKeyModal.vue

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
<button @click="copyApiKey">Copy</button>
88
</div>
99
<div>
10-
<p>You can use this Api key for accesing doamin forge through cli</p>
10+
<p>You can use this Api key for accesing domain forge through cli</p>
1111
<P>You can run "npm i -g domainforge-cli" to use domain forge cli</p>
1212
</div>
13-
<button @click="$emit('close-modal') class="close-button">Close</button>
13+
<button @click="$emit('close-modal')" class="close-button">Close</button>
1414
</div>
1515
</div>
1616
</template>
@@ -40,8 +40,22 @@ export default {
4040
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
4141
border-radius: 10px;
4242
}
43+
.modal-content {
44+
display: flex;
45+
flex-direction: column;
46+
justify-content: center;
47+
align-items: center;
48+
}
4349
.close-button {
44-
width : 50%;
50+
width: 30%;
51+
margin: 10px auto; /* Centers the button horizontally */
52+
padding: 5px 10px;
53+
text-align: center;
54+
background-color: #d9534f; /* Optional styling */
55+
color: white; /* Optional styling */
56+
border: none;
57+
border-radius: 5px;
58+
cursor: pointer;
4559
}
4660
.api-key-container {
4761
display: flex;
@@ -50,7 +64,8 @@ export default {
5064
margin-bottom: 10px;
5165
}
5266
input {
53-
width: 80%;
67+
width: 70%;
5468
padding: 5px;
5569
}
5670
</style>
71+

0 commit comments

Comments
 (0)