[PR #5141] [CLOSED] Center tables within markdown #17665

Closed
opened 2025-11-02 14:51:32 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5141
Author: @ollien
Created: 10/22/2018
Status: Closed

Base: masterHead: table-centering


📝 Commits (1)

  • 075b698 Center tables within markdown

📊 Changes

2 files changed (+2 additions, -1 deletions)

View changed files

📝 public/css/index.css (+1 -1)
📝 public/less/_markdown.less (+1 -0)

📄 Description

This fixes tables not being centered in markdown files, as described by #4916.

Before:
Before

After:
After

I tried to avoid using !important, but Semantic seems to place a text-align: inherit on tables, so I had to (sadly) resort to using it.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/5141 **Author:** [@ollien](https://github.com/ollien) **Created:** 10/22/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `table-centering` --- ### 📝 Commits (1) - [`075b698`](https://github.com/go-gitea/gitea/commit/075b6984b070ac387546977b9d5adec2a5ea6cec) Center tables within markdown ### 📊 Changes **2 files changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `public/css/index.css` (+1 -1) 📝 `public/less/_markdown.less` (+1 -0) </details> ### 📄 Description This fixes tables not being centered in markdown files, as described by #4916. Before: ![Before](https://user-images.githubusercontent.com/977151/47325958-87d00300-d634-11e8-92b5-976c9e3c2d97.png) After: ![After](https://user-images.githubusercontent.com/977151/47326032-e09f9b80-d634-11e8-9cb9-33cb79aa77a6.png) I tried to avoid using `!important`, but Semantic seems to place a `text-align: inherit` on tables, so I had to (sadly) resort to using it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 14:51:32 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17665