Title: Ensure code-blocks take-up fixed width that's lesser than the content width · Issue #472 · git/git.github.io · GitHub
Open Graph Title: Ensure code-blocks take-up fixed width that's lesser than the content width · Issue #472 · git/git.github.io
X Title: Ensure code-blocks take-up fixed width that's lesser than the content width · Issue #472 · git/git.github.io
Description: From the discussion in #463: @mjaix says: I tried to understand why https://git.github.io/rev_news/2020/08/27/edition-66/, https://git.github.io/rev_news/2020/10/30/edition-68/, and the actual Rev News have a formatting which results in ...
Open Graph Description: From the discussion in #463: @mjaix says: I tried to understand why https://git.github.io/rev_news/2020/08/27/edition-66/, https://git.github.io/rev_news/2020/10/30/edition-68/, and the actual Rev ...
X Description: From the discussion in #463: @mjaix says: I tried to understand why https://git.github.io/rev_news/2020/08/27/edition-66/, https://git.github.io/rev_news/2020/10/30/edition-68/, and the actual Rev ...
Opengraph URL: https://github.com/git/git.github.io/issues/472
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ensure code-blocks take-up fixed width that's lesser than the content width","articleBody":"From the discussion in #463:\r\n\r\n@mjaix says:\r\n\r\n> I tried to understand why https://git.github.io/rev_news/2020/08/27/edition-66/, https://git.github.io/rev_news/2020/10/30/edition-68/,\r\n and the actual Rev News have a formatting which results in a very slim\r\nleft menu colomn. Failed :-( ... hints are appreciated. \r\n\r\n@jnareb says:\r\n\r\n> If I understand it correctly, 66 and 68 edition has a very slim left menu column because the contents column is exceedingly wide due to overly long line in the code block. The menu column starts in the same place, it is just that it has less place because content column crowds it.\r\n>\r\n> \r\n> \r\n>\r\n> I wonder if it would be possible in CSS to make the _left margin_ slimmer instead of the menu column when contents column gets wide.\r\n\r\n@sivaraam says:\r\n\r\n> Another way to fix this would be to ensure code blocks always take up a fixed width rather than taking up as much width as it wants. I'm thinking of something similar to how code blocks in GitHub issue comments wrap withing the comment box. If that could be achieved, we wouldn't have to worry about how long the code block is.\r\n\r\nThe \"adjusting left-margin\" suggestion mentioned by @jnareb has been handled in #471. We still need to look into ensuring the code blocks only fixed width that's lesser than the content width. Particularly, this would ensure the rev-news edition renders well (as a single-page) on mobile screens with smaller width.","author":{"url":"https://github.com/sivaraam","@type":"Person","name":"sivaraam"},"datePublished":"2020-12-04T18:50:42Z","url":"https://github.com/git/git.github.io/issues/472"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:356fe183-555b-189f-c2b4-16f82175d507 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A486:16EED3:D153DD:10B2438:6B010336 |
| html-safe-nonce | 52d191877bef51db64fce33b4c55e71edbd8c8cd4942c5e529bebbc7d738593a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDg2OjE2RUVEMzpEMTUzREQ6MTBCMjQzODo2QjAxMDMzNiIsInZpc2l0b3JfaWQiOiI3NDc0NDc0NzczMTk2NjM2OTgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f74d601e639eaeb85d3a00fb6cd79e7d3e0803068b18dc4a0fcce9b0ce0917fa |
| hovercard-subject-tag | issue:757324497 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/git/git.github.io/472/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aac96a08b87c03cbf388f2c30bafc55264d98116ceea54b787fe51e012282855/git/git.github.io/issues/472 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aac96a08b87c03cbf388f2c30bafc55264d98116ceea54b787fe51e012282855/git/git.github.io/issues/472 |
| og:image:alt | From the discussion in #463: @mjaix says: I tried to understand why https://git.github.io/rev_news/2020/08/27/edition-66/, https://git.github.io/rev_news/2020/10/30/edition-68/, and the actual Rev ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sivaraam |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/git/git.github.io git https://github.com/git/git.github.io.git |
| octolytics-dimension-user_id | 18133 |
| octolytics-dimension-user_login | git |
| octolytics-dimension-repository_id | 16789090 |
| octolytics-dimension-repository_nwo | git/git.github.io |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16789090 |
| octolytics-dimension-repository_network_root_nwo | git/git.github.io |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width