Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

でかいサムネイルをクロップしたい #36

Closed
heavenshell opened this issue May 6, 2020 · 3 comments
Closed

でかいサムネイルをクロップしたい #36

heavenshell opened this issue May 6, 2020 · 3 comments
Assignees
Labels
duplicate This issue or pull request already exists

Comments

@heavenshell
Copy link
Member

サムネイルが大きすぎるので適切なサイズで欲しいです。

スクリーンショット 2020-05-05 0 21 21

テンプレート側で width=50% とかしてもいいですが、適切な値が取れるのなら
ThumbWidth, ThumbHeight に設定して欲しいです。

@koron
Copy link
Member

koron commented May 7, 2020

該当のメッセージのURLはコレ https://vim-jp.org/slacklog/CQ57P4XU4/2020/03/index.html#ts-1584603168.396700 (#lsp に相当)

また該当の message の JSON はこんな感じ

  {
    "attachments": [
      {
        "fallback": "Visual Studio 2019 バージョン16.5 のリリースノート",
        "from_url": "https://docs.microsoft.com/ja-jp/visualstudio/releases/2019/release-notes#decompilation-extraction",
        "id": 1,
        "original_url": "https://docs.microsoft.com/ja-jp/visualstudio/releases/2019/release-notes#decompilation-extraction",
        "service_icon": "https://docs.microsoft.com/favicon.ico",
        "service_name": "docs.microsoft.com",
        "text": "最新のプレリリース版の機能、バグの修正、および Visual Studio 2019 のサポートを取得します。 プレリリース版のテストに使用できます。 今すぐダウンロード。",
        "thumb_height": 400,
        "thumb_url": "https://docs.microsoft.com/en-us/media/logos/logo-ms-social.png",
        "thumb_width": 400,
        "title": "Visual Studio 2019 バージョン16.5 のリリースノート",
        "title_link": "https://docs.microsoft.com/ja-jp/visualstudio/releases/2019/release-notes#decompilation-extraction"
      }
    ],
    "blocks": [
      {
        "block_id": "n7i+t",
        "elements": [
          {
            "elements": [
              {
                "type": "link",
                "url": "https://docs.microsoft.com/ja-jp/visualstudio/releases/2019/release-notes#decompilation-extraction"
              }
            ],
            "type": "rich_text_section"
          }
        ],
        "type": "rich_text"
      }
    ],
    "client_msg_id": "f6b4f71b-0b1d-46e3-b46c-7e8cab51ae47",
    "source_team": "T03C4RC8V",
    "team": "T03C4RC8V",
    "text": "<https://docs.microsoft.com/ja-jp/visualstudio/releases/2019/release-notes#decompilation-extraction>",
    "ts": "1584603168.396700",
    "type": "message",
    "user": "U03C6TEAZ",
    "user_team": "T03C4RC8V"
  },

サムネイルサイズがそもそも 400x400 で入っててブラウザ的にも正しく表示してます。

image

@koron koron changed the title サムネイルがサムネイルの役割をなしてないので、適切なサイズのが欲しい でかいサムネイルをクロップしたい May 10, 2020
@koron
Copy link
Member

koron commented May 10, 2020

CSS でいい感じにクロップしたいですねー。

勿論レスポンシブでデバイスで最適に見えるがゴールですかね

という方針になった。

@koron
Copy link
Member

koron commented May 17, 2020

#129 へ引き継ぐので、こちらは閉じます。

@koron koron closed this as completed May 17, 2020
@koron koron self-assigned this May 17, 2020
@koron koron added the duplicate This issue or pull request already exists label May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants