Skip to content

Commit

Permalink
changed styling of modal
Browse files Browse the repository at this point in the history
  • Loading branch information
synan798 committed Dec 13, 2024
1 parent 6ab6fc6 commit 8ff3496
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/profile/FriendRequestModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const addFriend = async () => {
text-align: center;
background-color: white;
height: 500px;
width: 500px;
width: 40vb;
margin-top: 10%;
border-radius: 20px;
}
Expand Down
2 changes: 1 addition & 1 deletion components/profile/Friendlist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function getFriendships() {
<div class="flex flex-col">
<!-- Buttons Section -->
<div class="flex justify-center mb-3">
<button class="p-2 bg-blue-500 text-white rounded-3xl ml-2" @click="showModal = true">Add new Friends</button>
<button class="p-2 bg-blue-500 text-white rounded-3xl ml-2" @click="showModal = true">Add new friend</button>
<ProfileFriendRequestModal v-show="showModal" @close-modal="showModal = false" @refresh="getFriendships" />
</div>

Expand Down
9 changes: 4 additions & 5 deletions components/profile/UserModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ async function getFriendInformation() {
<Icon name="mdi:check" class="text-5xl text-red-600" />
</div>
</div>
<div v-else-if="props.viewType === UserViewType.FRIENDS" class="flex mt-5 gap-10">
<div v-else-if="props.viewType === UserViewType.FRIENDS" class="flex mt-16 gap-10">
<button class="bg-yellow-500 hover:bg-yellow-600 text-red-600 my-2" @click="handleFriendship(FriendshipAction.REMOVE)">Remove Friend</button>
</div>
<div v-else-if="props.viewType === UserViewType.SENTREQUESTS" class="flex mt-5 gap-10">
<div v-else-if="props.viewType === UserViewType.SENTREQUESTS" class="flex mt-16 gap-10">
<button class="bg-yellow-500 hover:bg-yellow-600 text-red-600 my-2" @click="handleFriendship(FriendshipAction.DECLINE)">Cancel Request</button>
</div>
<button class="bg-indigo-600 hover:bg-indigo-800 my-5 text-white" @click="$emit('close-modal')">Close</button>
<button class="bg-indigo-600 hover:bg-indigo-800 my-3 text-white" @click="$emit('close-modal')">Close</button>
</div>
</div>
</template>
Expand All @@ -117,9 +117,8 @@ async function getFriendInformation() {
text-align: center;
background-color: white;
height: 500px;
width: 500px;
width: 40vb;
margin-top: 10%;
padding: 60px 0;
border-radius: 20px;
}
Expand Down

0 comments on commit 8ff3496

Please sign in to comment.