mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Fix name elision in settings information edit.
This commit is contained in:
@@ -189,6 +189,7 @@ infoLayerTopBarBack: IconButton(infoTopBarBack) {
|
|||||||
rippleAreaPosition: point(6px, 8px);
|
rippleAreaPosition: point(6px, 8px);
|
||||||
}
|
}
|
||||||
infoLayerTopBarMediaCancel: IconButton(infoLayerTopBarBack) {
|
infoLayerTopBarMediaCancel: IconButton(infoLayerTopBarBack) {
|
||||||
|
width: 48px;
|
||||||
icon: icon {{ "info/info_close", boxTitleCloseFg }};
|
icon: icon {{ "info/info_close", boxTitleCloseFg }};
|
||||||
iconOver: icon {{ "info/info_close", boxTitleCloseFgOver }};
|
iconOver: icon {{ "info/info_close", boxTitleCloseFgOver }};
|
||||||
}
|
}
|
||||||
|
@@ -183,6 +183,7 @@ settingsBioCountdown: FlatLabel(defaultFlatLabel) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
settingsCoverName: FlatLabel(defaultFlatLabel) {
|
settingsCoverName: FlatLabel(defaultFlatLabel) {
|
||||||
|
maxHeight: 24px;
|
||||||
style: TextStyle(defaultTextStyle) {
|
style: TextStyle(defaultTextStyle) {
|
||||||
font: font(17px semibold);
|
font: font(17px semibold);
|
||||||
linkFont: font(17px semibold);
|
linkFont: font(17px semibold);
|
||||||
|
@@ -190,12 +190,12 @@ void SetupPhoto(
|
|||||||
rpl::combine(
|
rpl::combine(
|
||||||
wrap->widthValue(),
|
wrap->widthValue(),
|
||||||
photo->widthValue(),
|
photo->widthValue(),
|
||||||
name->widthValue(),
|
Info::Profile::NameValue(self),
|
||||||
status->widthValue()
|
status->widthValue()
|
||||||
) | rpl::start_with_next([=](
|
) | rpl::start_with_next([=](
|
||||||
int max,
|
int max,
|
||||||
int photoWidth,
|
int photoWidth,
|
||||||
int nameWidth,
|
const TextWithEntities&,
|
||||||
int statusWidth) {
|
int statusWidth) {
|
||||||
photo->moveToLeft(
|
photo->moveToLeft(
|
||||||
(max - photoWidth) / 2,
|
(max - photoWidth) / 2,
|
||||||
@@ -206,8 +206,10 @@ void SetupPhoto(
|
|||||||
- upload->width()
|
- upload->width()
|
||||||
+ st::settingsInfoUploadLeft),
|
+ st::settingsInfoUploadLeft),
|
||||||
photo->y() + photo->height() - upload->height());
|
photo->y() + photo->height() - upload->height());
|
||||||
|
const auto skip = st::settingsButton.iconLeft;
|
||||||
|
name->resizeToNaturalWidth(max - 2 * skip);
|
||||||
name->moveToLeft(
|
name->moveToLeft(
|
||||||
(max - nameWidth) / 2,
|
(max - name->width()) / 2,
|
||||||
(photo->y() + photo->height() + st::settingsInfoPhotoSkip));
|
(photo->y() + photo->height() + st::settingsInfoPhotoSkip));
|
||||||
status->moveToLeft(
|
status->moveToLeft(
|
||||||
(max - statusWidth) / 2,
|
(max - statusWidth) / 2,
|
||||||
|
Reference in New Issue
Block a user