-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix/settings styles [WTEL-4814] #736
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
ef38cef
fix: changed styles for settings and settings components [WTEL-4814]
liza-pohranichna a778d49
Merge branch 'master' into fix/settings-styles
liza-pohranichna 92d5ed8
fix: remove v-model in settings after review [WTEL-4814]
liza-pohranichna 28168ee
fix: change styles after review [WTEL-4816]
liza-pohranichna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,79 +6,78 @@ | |
</wt-page-header> | ||
</template> | ||
<template #main> | ||
<!--This wrapper "settings-section" is needed to place the "settings-section__setting" | ||
in a column and give them half the width of the screen--> | ||
<section class="settings-section"> | ||
<article class="settings-section__setting"> | ||
<!--This wrapper is needed to set height and place the settings-section-items | ||
in 2 columns and have flexible background for this at the same time--> | ||
<div class="settings-section__content"> | ||
<change-password /> | ||
</article> | ||
<section class="settings-section__setting"> | ||
<header class="content-header"> | ||
<h3 class="content-title"> | ||
{{ $t('settings.language') }} | ||
</h3> | ||
</header> | ||
<form> | ||
<wt-select | ||
:label="$t('settings.language')" | ||
:options="languageOptions" | ||
:value="language" | ||
class="language-list" | ||
@input="changeLanguage" | ||
:clearable="false" | ||
/> | ||
</form> | ||
</section> | ||
<section class="settings-section__setting"> | ||
<header class="content-header"> | ||
<h3 class="content-title"> | ||
{{ $t('settings.webPhone') }} | ||
</h3> | ||
</header> | ||
<form> | ||
<div class="settings-section__wrapper settings-section__switcher"> | ||
<p>{{ $t('settings.useWebPhone') }}</p> | ||
<wt-switcher | ||
v-model="webrtc" | ||
@change="changeWebrtc" | ||
<section class="settings-section-item"> | ||
<header class="content-header"> | ||
<h3 class="content-title"> | ||
{{ $t('settings.language') }} | ||
</h3> | ||
</header> | ||
<form> | ||
<wt-select | ||
:label="$t('settings.language')" | ||
:options="languageOptions" | ||
:value="language" | ||
class="language-list" | ||
@input="changeLanguage" | ||
:clearable="false" | ||
/> | ||
</div> | ||
<div | ||
v-show="webrtc" | ||
class="settings-section__wrapper" | ||
> | ||
<p>{{ $t('settings.useStun') }}</p> | ||
<wt-switcher | ||
v-model="stun" | ||
@change="changeStun" | ||
/> | ||
</div> | ||
</form> | ||
</section> | ||
<section class="settings-section__setting"> | ||
<header class="content-header"> | ||
<h3 class="content-title"> | ||
{{ $t('settings.callEnd') }} | ||
</h3> | ||
</header> | ||
<form> | ||
<div class="settings-section__wrapper"> | ||
<p>{{ $t('objects.status') }}</p> | ||
<wt-switcher | ||
:value="callEndSound" | ||
@change="changeCallEndSoundState" | ||
/> | ||
</div> | ||
</form> | ||
</section> | ||
<custom-ringtone /> | ||
</form> | ||
</section> | ||
<section class="settings-section-item"> | ||
<header class="content-header"> | ||
<h3 class="content-title"> | ||
{{ $t('settings.webPhone') }} | ||
</h3> | ||
</header> | ||
<form> | ||
<div class="settings-section__wrapper settings-section__switcher"> | ||
<p>{{ $t('settings.useWebPhone') }}</p> | ||
<wt-switcher | ||
:value="webrtc" | ||
@change="changeWebrtc" | ||
/> | ||
</div> | ||
<div | ||
v-show="webrtc" | ||
class="settings-section__wrapper" | ||
> | ||
<p>{{ $t('settings.useStun') }}</p> | ||
<wt-switcher | ||
:value="stun" | ||
@change="changeStun" | ||
/> | ||
</div> | ||
</form> | ||
</section> | ||
<section class="settings-section-item"> | ||
<header class="content-header"> | ||
<h3 class="content-title"> | ||
{{ $t('settings.callEnd') }} | ||
</h3> | ||
</header> | ||
<form> | ||
<div class="settings-section__wrapper"> | ||
<p>{{ $t('objects.status') }}</p> | ||
<wt-switcher | ||
:value="callEndSound" | ||
@change="changeCallEndSoundState" | ||
/> | ||
</div> | ||
</form> | ||
</section> | ||
<custom-ringtone /> | ||
</div> | ||
</section> | ||
</template> | ||
</wt-page-wrapper> | ||
</template> | ||
|
||
<script> | ||
import { required, sameAs } from '@vuelidate/validators'; | ||
import getNamespacedState from '@webitel/ui-sdk/src/store/helpers/getNamespacedState'; | ||
import { mapState } from 'vuex'; | ||
import { changeWebPhone, getWebPhone } from '../api/settings'; | ||
|
@@ -196,20 +195,23 @@ export default { | |
|
||
<style lang="scss" scoped> | ||
.settings-section { | ||
display: block; | ||
columns: 2; | ||
column-gap: var(--spacing-sm); | ||
width: 100%; | ||
min-width: 200px; | ||
|
||
&__setting { | ||
&__content { | ||
display: flex; | ||
flex-direction: column; | ||
margin-bottom: var(--spacing-sm); | ||
flex-wrap: wrap; | ||
max-height: 650px; // we need it to place blocks in 2 columns and have flexible background for this at the same time | ||
gap: var(--spacing-sm); | ||
} | ||
|
||
&-item { | ||
display: flex; | ||
flex-direction: column; | ||
width: calc(50% - var(--spacing-sm)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. а чому б замість цього грідом не скористатись на перенті? |
||
padding: 0 var(--spacing-sm) var(--spacing-sm); | ||
border-radius: var(--border-radius); | ||
box-shadow: var(--elevation-5); | ||
break-inside: avoid-column; | ||
} | ||
|
||
.content-title { | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
це Женя сказав таку висоту поставити захардкодити, та?