Browse Source

[fix] Magnet URI overflows

pull/2/head
Muthu Kumar 6 years ago
parent
commit
53addb5933
  1. 5
      public/stylesheets/style.css
  2. 4
      routes/index.js

5
public/stylesheets/style.css

@ -13,6 +13,11 @@ code {
pre { pre {
background: #EEE; background: #EEE;
padding: 40px; padding: 40px;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
} }
a { a {

4
routes/index.js

@ -16,9 +16,7 @@ template = (magnet, meta) => (`
</head> </head>
<body> <body>
<h1> :magnet:</h1> <h1> :magnet:</h1>
<pre> <pre>${magnet}</pre>
${magnet}
</pre>
</p> </p>
</body> </body>
</html> </html>

Loading…
Cancel
Save