Skip to content

Commit

Permalink
UI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Dec 28, 2023
1 parent ed97380 commit eb6ad93
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/ControlAspectRatios.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:rounded="false"
:disabled="lockWindowSize"
:active="isEqual(aspectRatio, [x, y])"
class="justify-center w-16"
class="justify-center w-16 font-medium"
:class="{ 'rounded-l-lg': index === 0 }"
@click.native="$emit('select', x, y)"
>
Expand Down
4 changes: 2 additions & 2 deletions components/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
button: [sizes[size], variants[variant], 'rounded-lg', ...classes],
dropdownWrapper: 'fixed z-30 bg-ui-gray-700',
dropdown:
'highlight origin-top-right absolute right-0 w-56 shadow bg-ui-gray-700 rounded-lg',
'highlight origin-top-right absolute right-0 w-56 shadow bg-ui-gray-700 rounded-lg overflow-hidden ring-1 ring-ui-gray-800',
enterClass: 'opacity-0 scale-95',
enterActiveClass: 'transition transform ease-out duration-100',
enterToClass: 'opacity-100 scale-100',
Expand Down Expand Up @@ -34,7 +34,7 @@
@blur="blurHandler"
:dusk="`option-${item.name}`"
@click.prevent="() => item.click() && hide()"
class="block px-4 py-2 mx-2 my-1 text-sm transition duration-150 ease-in-out rounded-lg text-ui-gray-100 hover:bg-ui-gray-900 focus:outline-none focus:ring-0 focus:bg-ui-gray-900"
class="block px-4 py-2 mx-2 my-1 text-xs font-medium transition duration-150 ease-in-out rounded-md text-ui-gray-100 hover:bg-ui-gray-900 focus:outline-none focus:ring-0 focus:bg-ui-gray-900"
>
{{ item.title }}
</a>
Expand Down
6 changes: 3 additions & 3 deletions components/FileDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
wrapper: 'inline-flex flex-col',
dropdownWrapper: 'relative z-30 bg-ui-gray-700',
dropdown:
'highlight origin-top-left absolute left-0 w-56 shadow bg-ui-gray-700 overflow-hidden rounded-br-lg rounded-tr-lg',
'highlight origin-top-left absolute left-0 top-1 left-1 w-56 shadow bg-ui-gray-700 overflow-hidden rounded-lg ring-1 ring-ui-gray-800',
enterClass: 'opacity-0 scale-95',
enterActiveClass: 'transition transform ease-out duration-100',
enterToClass: 'opacity-100 scale-100',
Expand All @@ -17,15 +17,15 @@
>
<div dusk="dropdown-file" slot-scope="{ hide, blurHandler }" class="py-1 shadow-lg">
<template v-for="(option, index) in options">
<div v-if="option.separator" class="h-px bg-ui-gray-800" :key="index"></div>
<div v-if="option.separator" class="h-px bg-ui-gray-800 mx-2" :key="index"></div>

<a
v-else
href="#"
:key="option.name"
@blur="blurHandler"
@click.prevent="() => option.click() && hide()"
class="block px-4 py-1 my-1 text-sm leading-5 transition duration-150 ease-in-out text-ui-gray-100 hover:bg-ui-gray-900 focus:outline-none focus:ring-0 focus:bg-ui-gray-900"
class="block px-4 py-1 my-1 text-xs leading-5 transition duration-150 ease-in-out mx-2 font-medium text-ui-gray-100 rounded-md hover:bg-ui-gray-900 focus:outline-none focus:ring-0 focus:bg-ui-gray-900"
>
{{ option.title }}
</a>
Expand Down
8 changes: 4 additions & 4 deletions components/Preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<div class="flex flex-wrap items-center justify-center h-10 gap-2">
<Button
size="sm"
size="xs"
type="button"
class="shadow"
dusk="button-copy"
Expand All @@ -32,7 +32,7 @@
</Button>

<Dropdown
size="sm"
size="xs"
variant="primary"
:items="fileTypes"
dusk="button-export"
Expand All @@ -44,7 +44,7 @@

<Button
v-if="!$config.isDesktop && $config.isDistributing"
size="sm"
size="xs"
href="/buy"
class="shadow"
target="_blank"
Expand All @@ -55,7 +55,7 @@
</Button>

<Button
size="sm"
size="xs"
href="https://api.showcode.app/docs"
class="shadow"
target="_blank"
Expand Down

0 comments on commit eb6ad93

Please sign in to comment.