Introduction
Introduction Statistics Contact Development Disclaimer Help
inline images: use CSS for max width, do not rescale if the image is smaller - …
git clone git://git.codemadness.org/gopherproxy-c
Log
Files
Refs
README
LICENSE
---
commit 641a71680cc507faa65a1b2c7384d1e3313119ef
parent 7b02f8a438e1b15796383f446d13f2c8c92d8501
Author: Hiltjo Posthuma <[email protected]>
Date: Sun, 3 Aug 2025 21:42:08 +0200
inline images: use CSS for max width, do not rescale if the image is smaller
Otherwise an image would always get rescaled.
Diffstat:
M gopherproxy.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gopherproxy.c b/gopherproxy.c
@@ -396,7 +396,7 @@ servedir(const char *server, const char *port, const char *…
fputs("<img src=\"?q=", stdout);
encodeparam(uri);
- fputs("\" width=\"400\" />", stdout);
+ fputs("\" />", stdout);
fputs("</a>", stdout);
break;
@@ -743,7 +743,7 @@ main(void)
fputs(
"Gopher HTTP proxy</title>\n"
"<style type=\"text/css\">\n"
- "a { text-decoration: none; } a:hover { text-decoration: under…
+ "a { text-decoration: none; } a:hover { text-decoration: under…
"@media (prefers-color-scheme: dark) { body { background-color…
"</style>\n"
"<meta name=\"robots\" content=\"noindex, nofollow\" />\n"
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.