Fixed profile settings style
This commit is contained in:
parent
70adae46a8
commit
dd2746e19e
|
@ -420,7 +420,6 @@
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
margin-top: 1.5rem;
|
margin-top: 1.5rem;
|
||||||
gap: 1rem;
|
|
||||||
|
|
||||||
@include media-breakpoint-down(md) {
|
@include media-breakpoint-down(md) {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -431,7 +430,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
margin-right: 3rem;
|
margin: 0 2% 1rem;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
border-bottom: unset !important;
|
border-bottom: unset !important;
|
||||||
|
|
||||||
|
|
|
@ -315,6 +315,7 @@ export const ProfileSettings = () => {
|
||||||
<p class="form-message form-message--error">{t('It does not look like url')}</p>
|
<p class="form-message form-message--error">{t('It does not look like url')}</p>
|
||||||
</Show>
|
</Show>
|
||||||
</Show>
|
</Show>
|
||||||
|
<Show when={social()}>
|
||||||
<For each={profileSocialLinks(social())}>
|
<For each={profileSocialLinks(social())}>
|
||||||
{(network) => (
|
{(network) => (
|
||||||
<SocialNetworkInput
|
<SocialNetworkInput
|
||||||
|
@ -328,6 +329,7 @@ export const ProfileSettings = () => {
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</For>
|
</For>
|
||||||
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -343,7 +345,12 @@ export const ProfileSettings = () => {
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-20 col-lg-18 col-xl-16">
|
<div class="col-md-20 col-lg-18 col-xl-16">
|
||||||
<div class={styles.content}>
|
<div class={styles.content}>
|
||||||
<Button variant="light" value={t('Cancel')} onClick={handleCancel} />
|
<Button
|
||||||
|
class={styles.cancel}
|
||||||
|
variant="light"
|
||||||
|
value={t('Cancel changes')}
|
||||||
|
onClick={handleCancel}
|
||||||
|
/>
|
||||||
<Button onClick={handleSubmit} variant="primary" value={t('Save settings')} />
|
<Button onClick={handleSubmit} variant="primary" value={t('Save settings')} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -24,7 +24,7 @@ export function useProfileForm() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const userpicUrl = (userpic: string) => {
|
const userpicUrl = (userpic: string) => {
|
||||||
if (userpic.includes('assets.discours.io')) {
|
if (userpic && userpic.includes('assets.discours.io')) {
|
||||||
return userpic.replace('100x', '500x500')
|
return userpic.replace('100x', '500x500')
|
||||||
}
|
}
|
||||||
return userpic
|
return userpic
|
||||||
|
|
|
@ -291,13 +291,18 @@ h5 {
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-around;
|
justify-content: space-between;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
padding: 1rem 0;
|
padding: 1rem 0;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cancel {
|
.cancel {
|
||||||
margin-right: auto;
|
color: #d00820;
|
||||||
|
padding: 0.8rem 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.row) > * {
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user