client: tweak ui
This commit is contained in:
parent
e46bb2f948
commit
14fa8b177d
4 changed files with 7 additions and 5 deletions
|
|
@ -34,7 +34,7 @@ export default defineComponent({
|
|||
const content = ref<HTMLElement>();
|
||||
const margin = ref(0);
|
||||
const adjust = (rect: { width: number; height: number; }) => {
|
||||
if (rect.width > (props.contentMax || 500)) {
|
||||
if (rect.width > props.contentMax || rect.width > 500) {
|
||||
margin.value = props.marginMax;
|
||||
} else {
|
||||
margin.value = props.marginMin;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue