diff --git a/website/public/styles/main.css b/website/public/styles/main.css
index 94fdea9..226a96d 100644
--- a/website/public/styles/main.css
+++ b/website/public/styles/main.css
@@ -102,7 +102,6 @@ p {
.group-picture {
border-radius: 5px;
- border: none;
}
.item-box, .item-box-full-width {
@@ -291,19 +290,6 @@ div[data-title]:hover:after {
vertical-align: middle;
}
-::-webkit-scrollbar {
- width: 5px;
- height: 5px;
-}
-::-webkit-scrollbar-track {
- background: none;
-}
-::-webkit-scrollbar-thumb {
- -webkit-border-radius: 20px;
- border-radius: 20px;
- background: #4CAF50;
-}
-
@media only screen and (max-width: 1080px) {
body {
font-size: 28px!important;
diff --git a/website/public/styles/profile.css b/website/public/styles/profile.css
index 1bacafa..0d792ac 100644
--- a/website/public/styles/profile.css
+++ b/website/public/styles/profile.css
@@ -11,7 +11,7 @@
display: inline-block;
}
-.friend-button-container {
+.friend-button-container, .group-button-container {
position: relative;
float: right;
width: 200px;
@@ -62,7 +62,6 @@
.group-picture {
border: none;
- margin-bottom: 0;
margin-right: 15px;
}
diff --git a/website/queries/friendship.php b/website/queries/friendship.php
index a16d859..7355af2 100644
--- a/website/queries/friendship.php
+++ b/website/queries/friendship.php
@@ -10,8 +10,8 @@ function selectLimitedFriends($userID, $limit) {
$stmt = prepareQuery("
SELECT
`userID`,
- `username`,
- LEFT(CONCAT(`user`.`fname`, ' ', `user`.`lname`), 15) as `fullname`,
+ LEFT(`username`, 17) as `username`,
+ LEFT(CONCAT(`user`.`fname`, ' ', `user`.`lname`), 12) as `fullname`,
IFNULL(
`profilepicture`,
'../img/avatar-standard.png'
@@ -50,8 +50,8 @@ function selectAllFriends($userID) {
$stmt = prepareQuery("
SELECT
`userID`,
- `username`,
- LEFT(CONCAT(`user`.`fname`, ' ', `user`.`lname`), 15) as `fullname`,
+ LEFT(`username`, 17) as `username`,
+ LEFT(CONCAT(`user`.`fname`, ' ', `user`.`lname`), 12) as `fullname`,
IFNULL(
`profilepicture`,
'../img/avatar-standard.png'
@@ -85,8 +85,8 @@ function selectAllFriendRequests() {
$stmt = prepareQuery("
SELECT
`userID`,
- `username`,
- LEFT(CONCAT(`user`.`fname`, ' ', `user`.`lname`), 15) as `fullname`,
+ LEFT(`username`, 17) as `username`,
+ LEFT(CONCAT(`user`.`fname`, ' ', `user`.`lname`), 12) as `fullname`,
IFNULL(
`profilepicture`,
'../img/avatar-standard.png'
@@ -235,8 +235,9 @@ function searchSomeFriends($n, $m, $search) {
$stmt = prepareQuery("
SELECT
`userID`,
- `username`,
- LEFT(CONCAT(`user`.`fname`, ' ', `user`.`lname`), 15) as `fullname`,
+
+ LEFT(`username`, 17) as `username`,
+ LEFT(CONCAT(`user`.`fname`, ' ', `user`.`lname`), 12) as `fullname`,
IFNULL(
`profilepicture`,
'../img/avatar-standard.png'
diff --git a/website/queries/private_message.php b/website/queries/private_message.php
index 4ac04a7..3b88563 100644
--- a/website/queries/private_message.php
+++ b/website/queries/private_message.php
@@ -95,7 +95,7 @@ function getNewChatMessages($lastID, $destination) {
function selectAllUnreadChat() {
$stmt = prepareQuery("
SELECT
- LEFT(CONCAT(`user`.`fname`, ' ', `user`.`lname`), 15) AS `fullname`,
+ LEFT(CONCAT(`user`.`fname`, ' ', `user`.`lname`), 12) as `fullname`,
`user`.`userID`,
IFNULL(
`profilepicture`,
diff --git a/website/queries/user.php b/website/queries/user.php
index 33a85a1..101c70c 100644
--- a/website/queries/user.php
+++ b/website/queries/user.php
@@ -345,12 +345,12 @@ function searchSomeUsers($n, $m, $search) {
$stmt = prepareQuery("
SELECT
`userID`,
- `username`,
+ LEFT(`username`, 17) as `username`,
IFNULL(
`profilepicture`,
'../img/avatar-standard.png'
) AS profilepicture,
- LEFT(CONCAT(`user`.`fname`, ' ', `user`.`lname`), 15) as `fullname`,
+ LEFT(CONCAT(`user`.`fname`, ' ', `user`.`lname`), 12) as `fullname`,
CASE `lastactivity` >= DATE_SUB(NOW(),INTERVAL 15 MINUTE)
WHEN TRUE THEN 'online'
WHEN FALSE THEN 'offline'
diff --git a/website/views/group.php b/website/views/group.php
index c12b552..d192123 100644
--- a/website/views/group.php
+++ b/website/views/group.php
@@ -1,12 +1,17 @@