smodusermc commited on
Commit
856d113
·
verified ·
1 Parent(s): 69abd0a

Update static/style.css

Browse files
Files changed (1) hide show
  1. static/style.css +222 -1
static/style.css CHANGED
@@ -937,4 +937,225 @@ a:hover { text-decoration: underline; }
937
  .message-bubble { max-width:65%; }
938
  .compose-form { padding:0.6rem 1rem; }
939
  }
940
- @media (min-width:1024px) { .message-bubble { max-width:55%; } }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
937
  .message-bubble { max-width:65%; }
938
  .compose-form { padding:0.6rem 1rem; }
939
  }
940
+ @media (min-width:1024px) { .message-bubble { max-width:55%; } }
941
+
942
+ /* ======= MESSAGE SENDER ROW FIXED ======= */
943
+ .msg-sender-row {
944
+ display: flex;
945
+ align-items: center;
946
+ gap: 0.35rem;
947
+ margin-bottom: 0.25rem;
948
+ }
949
+ .msg-sender-row-self {
950
+ justify-content: flex-end;
951
+ }
952
+ .msg-avatar {
953
+ width: 22px;
954
+ height: 22px;
955
+ border-radius: 50%;
956
+ object-fit: cover;
957
+ flex-shrink: 0;
958
+ border: 1px solid var(--border);
959
+ display: block;
960
+ }
961
+ .msg-avatar-placeholder {
962
+ width: 22px;
963
+ height: 22px;
964
+ border-radius: 50%;
965
+ background: var(--primary);
966
+ color: #fff;
967
+ display: flex;
968
+ align-items: center;
969
+ justify-content: center;
970
+ font-size: 0.65rem;
971
+ font-weight: 700;
972
+ flex-shrink: 0;
973
+ }
974
+ .msg-sender-name {
975
+ font-size: 0.72rem;
976
+ font-weight: 600;
977
+ color: var(--text-secondary);
978
+ line-height: 1;
979
+ }
980
+ .message-wrapper.self .msg-sender-name {
981
+ color: var(--text-tertiary);
982
+ }
983
+
984
+ /* ======= MESSAGE ACTIONS ALWAYS VISIBLE ======= */
985
+ .message-actions {
986
+ display: flex;
987
+ gap: 2px;
988
+ margin-top: 0.25rem;
989
+ opacity: 1 !important;
990
+ }
991
+
992
+ /* ======= ATTACHMENT SIZE FIX ======= */
993
+ .message-bubble .attachment {
994
+ max-width: 260px;
995
+ }
996
+ .message-bubble .attachment img {
997
+ max-width: 100%;
998
+ max-height: 220px;
999
+ width: auto;
1000
+ height: auto;
1001
+ object-fit: contain;
1002
+ border-radius: var(--radius-md);
1003
+ cursor: pointer;
1004
+ display: block;
1005
+ }
1006
+ .message-bubble .attachment video {
1007
+ max-width: 100%;
1008
+ max-height: 220px;
1009
+ border-radius: var(--radius-md);
1010
+ display: block;
1011
+ }
1012
+ .message-bubble {
1013
+ display: inline-block;
1014
+ max-width: 100%;
1015
+ }
1016
+ .message-wrapper.self .message-bubble {
1017
+ max-width: 72%;
1018
+ }
1019
+ .message-wrapper.other .message-bubble {
1020
+ max-width: 72%;
1021
+ }
1022
+
1023
+ /* ======= LATEST MESSAGE TOAST ======= */
1024
+ .latest-message-bar {
1025
+ position: absolute;
1026
+ bottom: 1rem;
1027
+ left: 50%;
1028
+ transform: translateX(-50%);
1029
+ z-index: 10;
1030
+ background: var(--bg-elevated);
1031
+ border: 1px solid var(--border);
1032
+ border-radius: var(--radius-full);
1033
+ box-shadow: var(--shadow-lg);
1034
+ padding: 0.4rem 1rem;
1035
+ display: flex;
1036
+ align-items: center;
1037
+ gap: 0.5rem;
1038
+ cursor: pointer;
1039
+ max-width: 280px;
1040
+ transition: all var(--transition-fast);
1041
+ font-size: 0.8125rem;
1042
+ color: var(--text);
1043
+ white-space: nowrap;
1044
+ overflow: hidden;
1045
+ text-overflow: ellipsis;
1046
+ }
1047
+ .latest-message-bar:hover {
1048
+ background: var(--bg-tertiary);
1049
+ transform: translateX(-50%) translateY(-2px);
1050
+ box-shadow: var(--shadow-xl);
1051
+ }
1052
+ .latest-message-bar .lmb-avatar {
1053
+ width: 20px;
1054
+ height: 20px;
1055
+ border-radius: 50%;
1056
+ background: var(--primary);
1057
+ color: #fff;
1058
+ display: flex;
1059
+ align-items: center;
1060
+ justify-content: center;
1061
+ font-size: 0.6rem;
1062
+ font-weight: 700;
1063
+ flex-shrink: 0;
1064
+ overflow: hidden;
1065
+ }
1066
+ .latest-message-bar .lmb-avatar img {
1067
+ width: 100%;
1068
+ height: 100%;
1069
+ object-fit: cover;
1070
+ border-radius: 50%;
1071
+ }
1072
+ .latest-message-bar .lmb-name {
1073
+ font-weight: 600;
1074
+ color: var(--primary);
1075
+ flex-shrink: 0;
1076
+ }
1077
+ .latest-message-bar .lmb-text {
1078
+ overflow: hidden;
1079
+ text-overflow: ellipsis;
1080
+ white-space: nowrap;
1081
+ color: var(--text-secondary);
1082
+ }
1083
+ .latest-message-bar.hidden {
1084
+ display: none !important;
1085
+ }
1086
+
1087
+ /* ======= SETTINGS TOGGLE ======= */
1088
+ .settings-toggle-row {
1089
+ display: flex;
1090
+ align-items: center;
1091
+ justify-content: space-between;
1092
+ padding: 0.5rem 0;
1093
+ border-bottom: 1px solid var(--border-light);
1094
+ }
1095
+ .settings-toggle-row:last-child {
1096
+ border-bottom: none;
1097
+ }
1098
+ .settings-toggle-row label {
1099
+ font-size: 0.875rem;
1100
+ font-weight: 500;
1101
+ color: var(--text);
1102
+ margin: 0;
1103
+ }
1104
+ .settings-toggle-row .toggle-hint {
1105
+ font-size: 0.75rem;
1106
+ color: var(--text-tertiary);
1107
+ margin-top: 0.1rem;
1108
+ }
1109
+ .toggle-switch {
1110
+ position: relative;
1111
+ width: 44px;
1112
+ height: 24px;
1113
+ flex-shrink: 0;
1114
+ }
1115
+ .toggle-switch input {
1116
+ opacity: 0;
1117
+ width: 0;
1118
+ height: 0;
1119
+ position: absolute;
1120
+ }
1121
+ .toggle-slider {
1122
+ position: absolute;
1123
+ inset: 0;
1124
+ background: var(--bg-tertiary);
1125
+ border-radius: var(--radius-full);
1126
+ border: 1px solid var(--border);
1127
+ transition: all var(--transition-fast);
1128
+ cursor: pointer;
1129
+ }
1130
+ .toggle-slider::before {
1131
+ content: '';
1132
+ position: absolute;
1133
+ width: 18px;
1134
+ height: 18px;
1135
+ left: 2px;
1136
+ top: 2px;
1137
+ background: var(--text-tertiary);
1138
+ border-radius: 50%;
1139
+ transition: all var(--transition-fast);
1140
+ }
1141
+ .toggle-switch input:checked + .toggle-slider {
1142
+ background: var(--primary);
1143
+ border-color: var(--primary);
1144
+ }
1145
+ .toggle-switch input:checked + .toggle-slider::before {
1146
+ transform: translateX(20px);
1147
+ background: #fff;
1148
+ }
1149
+
1150
+ @media (min-width: 768px) {
1151
+ .message-wrapper.self .message-bubble,
1152
+ .message-wrapper.other .message-bubble {
1153
+ max-width: 65%;
1154
+ }
1155
+ }
1156
+ @media (min-width: 1024px) {
1157
+ .message-wrapper.self .message-bubble,
1158
+ .message-wrapper.other .message-bubble {
1159
+ max-width: 55%;
1160
+ }
1161
+ }