From 5e76b5afca3fb3ffa308b766b855a84a29a19811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 19 Jan 2022 21:43:03 +0100 Subject: [PATCH] Birth dates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/features/edit_profile/index.js | Bin 15707 -> 17560 bytes .../ui/components/profile_info_panel.js | Bin 8194 -> 8719 bytes app/soapbox/utils/features.js | Bin 3930 -> 3998 bytes app/styles/components/profile-info-panel.scss | 3 +- app/styles/forms.scss | 37 ++++++++++++++++++ package.json | 2 +- yarn.lock | 8 ++-- 7 files changed, 44 insertions(+), 6 deletions(-) diff --git a/app/soapbox/features/edit_profile/index.js b/app/soapbox/features/edit_profile/index.js index f381976531fc02d5b130905431aeb485d260f0f1..0a3dad66b869df189e608ee82fdda1bb6d94818c 100644 GIT binary patch delta 1253 zcmZuxOKTHR6ed2}B()DUZBl9LjV+lBB-7TaX{(9$p(v=Wv?wk#PLrE-a3(X%y`i=t zRF^Kq*0T{e-HZ5O#DyybmxAb47ybc3MBIqry_rWso69g^&i&5$zVqF4^L6d$4q8YkLckT`66+(x%XGl3htS#R}YY?F& z#iYxO1J?Xvp!ShvrQx|h+HqYkoAy59p)da5A;eZrFA<6gSf*tY6O@Ln;2?Yme4BGa z64qozy~vmojDRmvHn=`A?T}$I=@pP%1(>*SO({(kG5iXQb$g0%mPNC25eqj&>tk?e z_qBT2vo7Bxnm2W0an-;?TGDmZF4&B{8P1`7)!t+MY~S=9OV?y1)PY1h!1Ww}(uDBUOpl81V`oD=ZGfYu+j{`Q^mtt*5p zx+<$mp5<`?D4ju-T7unn1=*IMDg)4Eg-8aomz->X$f~NZ;5@IyFkYLYjcM5Bo^Vv$ zjjgi}sptenlytb9OcS%|D%q-HG2|xk99HN&n@qxua2^q58pwGo%&aCbuBsYjFB6v_ zGq4y+G#O3n(SWoU9*hP$J$DIW8shMMEZWA4+xJd@_s2uWsP*jRduH2E?FkpZLR%E;z S?hZv*^Pyd0)p|AfwD&)fVskhYQG?6U#_HV2cb3GS273fhyb3L*+FWo=<;Y)ol$bhAMWBm=Y3 s50L@0qY=lP)_DvkfbY882xe8~^|S diff --git a/app/soapbox/features/ui/components/profile_info_panel.js b/app/soapbox/features/ui/components/profile_info_panel.js index 74dd9a187984f61fa8fb7399f17ab3ea90e09de0..f2af515f58e31fc472d9ecc74518b67644118ae8 100644 GIT binary patch delta 215 zcmZp2=y%z0iq||Tv#2D)C9xz`!B!zLIXS;HuS73BwZt<|BU-&6C$%U)H&IwJyugeO>J^MuZ#g+MLG)A3Mq+|RtoBQrMam^naS!po9FPRv-4IXtOT0#P*9f@ zEHL?@unk*MVopwe-egq~XJi`{Qc}|rOLIzmQ;Ule(^GBLoj{HTnqHD>HMvJb6Jo&T I10qh`03XIm7ytkO delta 17 YcmeBoX>!eNow(AMsA787uZBLJMc*{0sz2_3T6NR delta 12 TcmbOye@kwI58vhqe0+=mAV~xu diff --git a/app/styles/components/profile-info-panel.scss b/app/styles/components/profile-info-panel.scss index 99bf66c093..495446e16d 100644 --- a/app/styles/components/profile-info-panel.scss +++ b/app/styles/components/profile-info-panel.scss @@ -22,7 +22,8 @@ flex-wrap: wrap; } - &__join-date { + &__join-date, + &__birth-date { display: flex; font-size: 14px; color: var(--primary-text-color--faint); diff --git a/app/styles/forms.scss b/app/styles/forms.scss index 9fc4ad1706..55daca3841 100644 --- a/app/styles/forms.scss +++ b/app/styles/forms.scss @@ -634,6 +634,43 @@ code { } } } + + .datepicker { + padding: 0; + margin-bottom: 8px; + + &__hint { + padding-bottom: 0; + color: var(--primary-text-color); + font-size: 14px; + font-style: unset; + } + + .react-datepicker { + &__navigation { + display: flex; + height: 32px; + width: 32px; + margin: 0; + background: none; + line-height: 24px; + + &:hover, + &:active, + &:focus { + background: none; + } + } + + &__input-container { + border: 1px solid var(--highlight-text-color); + + input { + border: none; + } + } + } + } } .block-icon { diff --git a/package.json b/package.json index 0df38b2daf..72ad7dfb5f 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "@sentry/browser": "^6.12.0", "@sentry/react": "^6.12.0", "@sentry/tracing": "^6.12.0", - "@tabler/icons": "^1.41.2", + "@tabler/icons": "^1.53.0", "array-includes": "^3.0.3", "autoprefixer": "^10.0.0", "axios": "^0.21.4", diff --git a/yarn.lock b/yarn.lock index b1dedfe159..48f6a651cd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1519,10 +1519,10 @@ remark "^13.0.0" unist-util-find-all-after "^3.0.2" -"@tabler/icons@^1.41.2": - version "1.41.2" - resolved "https://registry.yarnpkg.com/@tabler/icons/-/icons-1.41.2.tgz#effccbb261539b68609cc7dc660a058683170ee1" - integrity sha512-X6cQmMC24hiwg0p2BzasvU3IeCCdOk0f/9d6gNNtJM4lzG2TCloTns1bVvU5MAFkITGukxUqjPFE3Ecd6kGsfw== +"@tabler/icons@^1.53.0": + version "1.53.0" + resolved "https://registry.yarnpkg.com/@tabler/icons/-/icons-1.53.0.tgz#51536e01b343cfaf26b701df306b2c0369769e3c" + integrity sha512-Skk1BqXEOEhiRsXJgZBYtjFa/+4dMSFA5UyzTUW20oyyUSd3iizhEWrYt0jT87iFu771gWoqVV2/OGobBcGjgQ== "@tootallnate/once@1": version "1.1.2"