Fossil

Check-in [c6cc5557c0]
Login

Check-in [c6cc5557c0]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Resized the attachment SVG - its bounding box was far, far wider than the glyph.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | chat-input-rework
Files: files | file ages | folders
SHA3-256: c6cc5557c0f4ea66151329846e0bfbf1ae869a23f69dbb9cff81546da75da820
User & Date: stephan 2021-10-03 19:44:18.144
Context
2021-10-03
19:56
Rotated the paperclip 45 degrees (it's now horizontal) and restored the behavior that ctrl-enter will send a message if there is only an attachment with no text. ... (check-in: b8a20e20ff user: stephan tags: chat-input-rework)
19:44
Resized the attachment SVG - its bounding box was far, far wider than the glyph. ... (check-in: c6cc5557c0 user: stephan tags: chat-input-rework)
19:34
Experimentally replace paperclip Unicode glyph with an embedded SVG, as the glyph looks greyed out/inactive in some environments. ... (check-in: cc709782b4 user: stephan tags: chat-input-rework)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/chat.c.
142
143
144
145
146
147
148
149

150
151
152
153
154
155



156
157
158
159
160
161
162
163
** send new chat message, delete older messages, or poll for changes.
*/
void chat_webpage(void){
  char *zAlert;
  char *zProjectName;
  char * zInputPlaceholder0;  /* Common text input placeholder value */
  const char *zPaperclip =
    "<svg style=\"max-width:2.5ex\"><path d=\"M13.26,1.9a4.1,4.1,0,"

    "0,0-5.17.6L1.84,8.75A2.79,2.79,0,0,0,1,10.94,2.84,2.84,0,0,0,"
    "2.14,13a2.73,2.73,0,0,0,1.62.53,3.13,3.13,0,0,0,"
    "2.18-.92l5.4-5.4A1.66,1.66,0,0,0,9,4.86L5.4,8.46l.71.71L9.7,"
    "5.57a.66.66,0,0,1,.93.93L5.24,11.9a2,2,0,0,1-2.5.3,1.83,1.83,"
    "0,0,1-.2-2.74L8.79,3.21a3.11,3.11,0,0,1,3.9-.48A3,3,0,0,1,14,"
    "4.92a3,3,0,0,1-.86,2.37L7.86,12.55l.7.71L13.83,8a4,4,0,0,"



    "0-.57-6.1Z\"></path></svg>";

  login_check_credentials();
  if( !g.perm.Chat ){
    login_needed(g.anon.Chat);
    return;
  }
  zAlert = mprintf("%s/builtin/%s", g.zBaseURL,







|
>
|
|
<
|
|
|
>
>
>
|







142
143
144
145
146
147
148
149
150
151
152

153
154
155
156
157
158
159
160
161
162
163
164
165
166
** send new chat message, delete older messages, or poll for changes.
*/
void chat_webpage(void){
  char *zAlert;
  char *zProjectName;
  char * zInputPlaceholder0;  /* Common text input placeholder value */
  const char *zPaperclip =
    "<svg height=\"12.28288\" width=\"13.990313\"><path d=\"M "
    "12.266368,0.65287795 A 4.1,4.1 0 0 0 7.0963684,1.2528779 "
    "l -6.24999999,6.25 a 2.79,2.79 0 0 0 -0.84,2.19 2.84,2.84 "
    "0 0 0 1.13999999,2.0600001 2.73,2.73 0 0 0 1.62,0.53 3.13,"

    "3.13 0 0 0 2.18,-0.92 L 10.346368,5.9628779 a 1.66,1.66 0 "
    "0 0 -2.3399996,-2.35 l -3.6,3.6 0.71,0.71 3.59,-3.6 a 0.66,"
    "0.66 0 0 1 0.93,0.93 l -5.39,5.4000001 a 2,2 0 0 1 -2.5,0.3 "
    "1.83,1.83 0 0 1 -0.2,-2.7400001 l 6.25,-6.25 a 3.11,3.11 0 "
    "0 1 3.8999996,-0.48 3,3 0 0 1 1.31,2.19 3,3 0 0 1 -0.86,2.37 "
    "l -5.2799996,5.2600001 0.7,0.71 5.2699996,-5.2600001 a 4,4 0 "
    "0 0 -0.57,-6.09999995 z\" /></svg>";

  login_check_credentials();
  if( !g.perm.Chat ){
    login_needed(g.anon.Chat);
    return;
  }
  zAlert = mprintf("%s/builtin/%s", g.zBaseURL,