Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

help: Improve alignment for markdown tables.

mandepsingh61de39dd6fb0
diff --git a/static/styles/portico/markdown.css b/static/styles/portico/markdown.css
index 65b1c8c0157..45822b116f2 100644
--- a/static/styles/portico/markdown.css
+++ b/static/styles/portico/markdown.css
@@ -78,6 +78,14 @@
}
}
+ /* Since markdown doesn't make it easy to put an HTML element around a
+ markdown table, we instead have a model of putting an empty div
+ before it to configure a specific table's styling. */
+ div.centered_table + table td:not(:first-child),
+ div.centered_table + table th {
+ text-align: center;
+ }
+
ul,
ol {
margin-left: 30px;
diff --git a/templates/zerver/help/configure-message-editing-and-deletion.md b/templates/zerver/help/configure-message-editing-and-deletion.md
index ca27f414918..404c3bf77a9 100644
--- a/templates/zerver/help/configure-message-editing-and-deletion.md
+++ b/templates/zerver/help/configure-message-editing-and-deletion.md
@@ -13,6 +13,7 @@ is highly configurable. Two things are true under any configuration:
* Message content can only ever be modified by the original author.
* Any message can be deleted at any time by an organization administrator.
+<div class="centered_table"></div>
| | Admins | Members |
|--- |--- |--- |
| Edit your message content | [1] | [1] |
diff --git a/templates/zerver/help/stream-permissions.md b/templates/zerver/help/stream-permissions.md
index e8937f7035e..8adf07cb523 100644
--- a/templates/zerver/help/stream-permissions.md
+++ b/templates/zerver/help/stream-permissions.md
@@ -50,6 +50,7 @@ administrator can access private stream messages:
### Public streams
+<div class="centered_table"></div>
| | Owners and admins | Moderators | Members | Guests
|--- |--- | |--- |---
| View stream name | &#10004; | &#10004; | &#10004; | &#9726;
@@ -77,7 +78,7 @@ subscribed.
### Private streams
-
+<div class="centered_table"></div>
| | Owners and admins | Moderators | Members | Guests
|--- |--- | |--- |---
| View stream name | &#10004; | &#9726; | &#9726; | &#9726;