feat: improve mobile layout for Password Generator button
This commit is contained in:
@@ -75,7 +75,7 @@ const generatePasswords = () => {
|
|||||||
<div class="tool-panel">
|
<div class="tool-panel">
|
||||||
<div class="panel-header">
|
<div class="panel-header">
|
||||||
<h2 class="tool-title">Bulk Passwords Generator</h2>
|
<h2 class="tool-title">Bulk Passwords Generator</h2>
|
||||||
<div class="action-area">
|
<div class="action-area desktop-only">
|
||||||
<button class="btn-neon generate-btn" @click="generatePasswords" v-ripple>
|
<button class="btn-neon generate-btn" @click="generatePasswords" v-ripple>
|
||||||
Generate
|
Generate
|
||||||
</button>
|
</button>
|
||||||
@@ -131,6 +131,12 @@ const generatePasswords = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="mobile-only" style="margin-top: 1rem; width: 100%;">
|
||||||
|
<button class="btn-neon generate-btn" @click="generatePasswords" v-ripple style="width: 100%;">
|
||||||
|
Generate
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="result-area" :style="{ height: textareaHeight }">
|
<div class="result-area" :style="{ height: textareaHeight }">
|
||||||
<textarea
|
<textarea
|
||||||
class="tool-textarea"
|
class="tool-textarea"
|
||||||
@@ -353,6 +359,14 @@ const generatePasswords = () => {
|
|||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.desktop-only {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-only {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.options-grid {
|
.options-grid {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -372,5 +386,13 @@ const generatePasswords = () => {
|
|||||||
.generate-btn {
|
.generate-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.desktop-only {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-only {
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user