all repos

mugit @ 0238022d4a0252937298e8b3bb6fc39c1a026de1

馃惍 git server that your cow will love
2 files changed, 6 insertions(+), 1 deletions(-)
ui: dont put non markdown readmes in to the "box"

.readme pre was applied on readmes that are plain text,
resulting in it being threaded as code block
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-03-03 19:29:41 +0200
Authored at: 2026-03-03 16:39:28 +0200
Change ID: ovpxozwwltuxkwotqontuzmztkvzmwtp
Parent: 96929ec
M internal/handlers/repo.go
路路路
        486
        486
         				return template.HTML(readme), nil

      
        487
        487
         

      
        488
        488
         			default:

      
        489
        
        -				readmeContents = template.HTML(fmt.Sprintf(`<pre>%s</pre>`, content))

      
        
        489
        +				readmeContents = template.HTML(fmt.Sprintf(`<pre class="raw">%s</pre>`, content))

      
        490
        490
         			}

      
        491
        491
         			break

      
        492
        492
         		}

      
M web/static/style.css
路路路
        373
        373
           padding: 0.6rem;

      
        374
        374
         }

      
        375
        375
         

      
        
        376
        +.readme pre.raw {

      
        
        377
        +  background: unset;

      
        
        378
        +  padding: unset;

      
        
        379
        +}

      
        
        380
        +

      
        376
        381
         .readme details > * { padding-left: 1em; }

      
        377
        382
         .readme details[data-callout] {

      
        378
        383
           border-left: 4px solid var(--gray);