Comments (12)
Reopening due to padding bug.
@rishatl when there's a lot of content, the top and bottom padding breaks in your implementation (which is now on the branch fixed-long-lists
):
Would you mind having a look at it?
from cork.
I think I fixed the underlying problem described in #173. Could you try this branch? https://github.com/buresdv/Cork/tree/fixed-maintenance-sheet
from cork.
Hey, I'll take it upon myself, make me assignees, pls
from cork.
@buresdv, check mr👆🏻pls
from cork.
Fixed by #271
from cork.
@buresdv Removing fixedSize
solved this problem
from cork.
@rishatl that does fix the padding, but now, most of the text is missing:
Also, you can expand the sheet to a ludicrous size, which looks bad 😅
I suppose the fixedSize()
has to be somewhere. Do you have any other idea?
from cork.
@buresdv fixedSize()
prevents the view from being expanded, and the text can be of different sizes. I think shortened text is the best solution. Otherwise you will have to bind to constant frame values, which will lead to the same situation of text moving outside the view.
from cork.
The text was supposed to be shortened, but that was causing crashes (#173). Would it be possible to shorted the text, allow the sheet to expand, but forbid it from expanding indefinitely?
from cork.
I propose this solution - a limit on the maximum size with the ability to expand only vertically if there is a lot of text.
.frame(maxWidth: 800, maxHeight: 800)
}
.padding()
.fixedSize(horizontal: true, vertical: false)
from cork.
That is definitely an interesting solution, but it still suffers from the problem of the sheet being expandable to too large of a size:
Ideally, the text that lists all the packages would expand as needed (with some sort of a layout priority), and then the rest of the sheet would be laid out. But frames in SwiftUI are a huge mystery to me, so I don't really know how to do that
from cork.
Since nobody reported any issues, I merged the fix into main (54c9ee2) and will consider this bug fixed by it
from cork.
Related Issues (20)
- Fails when attempting to update when a package requires input HOT 1
- Add searching by description
- Add tokens to package search
- Application Badge not updating HOT 1
- Cork reports an Error Updating Homebrew when everything is actually fine... HOT 1
- Add support for brew leaves HOT 1
- Convert package loading to `taskGroup` HOT 1
- Control services from the menu bar
- Update services in the Services manager
- Implement basic support for Homebrew services
- Implement starting/stopping of Homebrew services
- Imlement killing of services
- Notification about new outdated packages shows a list of all packages, instead just the new package
- Categorize cached download according to package type HOT 1
- Replace old instances of non-sanitized packages with sanitized views HOT 1
- Progress bars jump a lot (much more than they should)
- Update progress bar jumps to 50% on first state change
- Installation progress bar jumps too much on first state change
- Symlink in a package directory locks up the app HOT 1
- fail to compile reporting `App State.swift:232:107 Value of type 'String' has no member 'onlyLetters'` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cork.