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

Improve layout and fix unknown locale of DisabledMessageInput #3537

Merged
merged 11 commits into from
Nov 17, 2023

Conversation

adzialocha
Copy link
Member

@adzialocha adzialocha commented Nov 16, 2023

Follow up PR from #3532

Minor fixes:

  • Fix warning for using an unknown translation by just returning an debug string (this is at least how it was in the version before)
  • Remove useRef as it doesn't really have a use in this scenario

Layout fix:

CSS: Center text always, also in narrow window sizes, independent of padding

Before:

2023-11-16-202352_678x76_scrot

After:

2023-11-16-202413_682x64_scrot

@adzialocha adzialocha marked this pull request as ready for review November 16, 2023 19:24
@Simon-Laux
Copy link
Member

I think I would keep the unknown, but throw the error instead when the DisabledChatReasons variant is not known.

Why? to not crash the whole app when core adds a new feature to disable sending in a new case. but to have the error when desktop devs forget to fully implement a DisabledChatReasons variant

@adzialocha
Copy link
Member Author

How is this now @Simon-Laux? Now as you said the unknown case is not crashing but returning a "weird" string to signal something is off.

I didn't use the tx method as already mentioned, to not clutter the dev console with annoying "translation missing" warnings.

Co-authored-by: Simon Laux <Simon-Laux@users.noreply.github.com>
@adzialocha adzialocha merged commit 3b290ce into master Nov 17, 2023
2 of 6 checks passed
@adzialocha adzialocha deleted the adz/fix-disabled-message-input branch November 17, 2023 17:41
adzialocha added a commit that referenced this pull request Nov 21, 2023
* master: (29 commits)
  fix double message context menu (#3551)
  fix displaying sticker that has wrong mimetype (#3552)
  fix bug where composer was locked after joining a group via qr code (#3547)
  prepare 1.41.3
  comment out verbose logging of store
  add `vi` to appx supported languages let's hope that this does not break the ms store again, it was on the ms list of supported languages, so I hope that it does not break it.
  Update translations (17.11.2023) and add Vietnamese language
  fix translation key for `add_to_sticker_collection` in context menu (#3544)
  fix eslint
  Select device message chat automatically to welcome first users (#3531)
  Improve layout and fix unknown locale of `DisabledMessageInput` (#3537)
  Use `dc_chat_can_send` to show or hide reply functionality (#3541)
  add more debug logging when clearing notifications (#3534)
  update deltachat-node and deltachat/jsonrpc-client to `v1.131.4` (#3539)
  update local help (#3538)
  Fix: Do not show reply option in read-only groups (#3536)
  Update options for disappearing messages (#3530)
  Do not show redundant read-only message when in device messages chat (#3532)
  fix: bug in emoji detection for jumbomoji #3508
  update deltachat-node and deltachat/jsonrpc-client to `v1.131.3`
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants