diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -1172,7 +1172,9 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local, | |||
| 1172 | name = "No description"; | 1172 | name = "No description"; |
| 1173 | 1173 | ||
| 1174 | xs *es1 = encode_html(name); | 1174 | xs *es1 = encode_html(name); |
| 1175 | xs *s1 = xs_fmt("<video style=\"max-width: 90vw; max-height: 70vh;\" controls src=\"%s\">Video: <a href=\"%s\">%s</a></video>\n", url, url, es1); | 1175 | xs *s1 = xs_fmt("<video style=\"width: 100%\" class=\"snac-embedded-video\" " |
| 1176 | "controls src=\"%s\">Video: " | ||
| 1177 | "<a href=\"%s\">%s</a></video>\n", url, url, es1); | ||
| 1176 | 1178 | ||
| 1177 | s = xs_str_cat(s, s1); | 1179 | s = xs_str_cat(s, s1); |
| 1178 | } | 1180 | } |
| @@ -1187,7 +1189,9 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local, | |||
| 1187 | name = "No description"; | 1189 | name = "No description"; |
| 1188 | 1190 | ||
| 1189 | xs *es1 = encode_html(name); | 1191 | xs *es1 = encode_html(name); |
| 1190 | xs *s1 = xs_fmt("<audio style=\"max-width: 90vw\" controls src=\"%s\">Audio: <a href=\"%s\">%s</a></audio>\n", url, url, es1); | 1192 | xs *s1 = xs_fmt("<audio style=\"width: 100%\" class=\"snac-embedded-audio\" " |
| 1193 | "controls src=\"%s\">Audio: " | ||
| 1194 | "<a href=\"%s\">%s</a></audio>\n", url, url, es1); | ||
| 1191 | 1195 | ||
| 1192 | s = xs_str_cat(s, s1); | 1196 | s = xs_str_cat(s, s1); |
| 1193 | } | 1197 | } |